summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Smirnov <urpylka@gmail.com>2018-09-14 20:39:46 +0300
committerArtem Smirnov <urpylka@gmail.com>2018-09-14 20:39:46 +0300
commit460682371404622f875b0c19ca5cde35a7211fec (patch)
treedcede26e1f08bd46cb92dadda84ab29df3782279
parent0deaa906eacdea986810096890099f04f94f77e8 (diff)
GPG key must be in volume
-rwxr-xr-xassets/gpg_batch.sh2
-rwxr-xr-xassets/startup.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/assets/gpg_batch.sh b/assets/gpg_batch.sh
index 0b66d88..e2b062c 100755
--- a/assets/gpg_batch.sh
+++ b/assets/gpg_batch.sh
@@ -14,6 +14,8 @@ Name-Comment: Aptly Repo Signing
14Name-Email: ${EMAIL_ADDRESS} 14Name-Email: ${EMAIL_ADDRESS}
15Expire-Date: 0 15Expire-Date: 0
16Passphrase: ${GPG_PASSWORD} 16Passphrase: ${GPG_PASSWORD}
17%pubring /opt/aptly/aptly.pub
18%secring /opt/aptly/aptly.sec
17%commit 19%commit
18%echo done 20%echo done
19EOF 21EOF
diff --git a/assets/startup.sh b/assets/startup.sh
index 22888b5..e79725b 100755
--- a/assets/startup.sh
+++ b/assets/startup.sh
@@ -49,8 +49,8 @@ if [[ -f /usr/share/keyrings/debian-archive-keyring.gpg ]]; then
49fi 49fi
50 50
51# Aptly looks in /root/.gnupg for default keyrings 51# Aptly looks in /root/.gnupg for default keyrings
52ln -sf /root/.gnupg/secring.gpg /opt/aptly/aptly.sec 52ln -sf /opt/aptly/aptly.sec /root/.gnupg/secring.gpg
53ln -sf /root/.gnupg/pubring.gpg /opt/aptly/aptly.pub 53ln -sf /opt/aptly/aptly.pub /root/.gnupg/pubring.gpg
54 54
55# Generate Nginx Config 55# Generate Nginx Config
56/opt/nginx.conf.sh 56/opt/nginx.conf.sh