From 460682371404622f875b0c19ca5cde35a7211fec Mon Sep 17 00:00:00 2001 From: Artem Smirnov Date: Fri, 14 Sep 2018 20:39:46 +0300 Subject: [PATCH 1/2] GPG key must be in volume --- assets/gpg_batch.sh | 2 ++ assets/startup.sh | 4 ++-- 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 Name-Email: ${EMAIL_ADDRESS} Expire-Date: 0 Passphrase: ${GPG_PASSWORD} +%pubring /opt/aptly/aptly.pub +%secring /opt/aptly/aptly.sec %commit %echo done EOF 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 fi # Aptly looks in /root/.gnupg for default keyrings -ln -sf /root/.gnupg/secring.gpg /opt/aptly/aptly.sec -ln -sf /root/.gnupg/pubring.gpg /opt/aptly/aptly.pub +ln -sf /opt/aptly/aptly.sec /root/.gnupg/secring.gpg +ln -sf /opt/aptly/aptly.pub /root/.gnupg/pubring.gpg # Generate Nginx Config /opt/nginx.conf.sh From 46dda7b9bd1d7f02b6f4795c63590bfe55d31a5f Mon Sep 17 00:00:00 2001 From: Artem Smirnov Date: Sat, 15 Sep 2018 20:24:41 +0300 Subject: [PATCH 2/2] Add author --- assets/startup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/startup.sh b/assets/startup.sh index e79725b..0ab55b6 100755 --- a/assets/startup.sh +++ b/assets/startup.sh @@ -1,6 +1,7 @@ #! /usr/bin/env bash # Copyright 2018 Artem B. Smirnov +# Copyright 2018 Jon Azpiazu # Copyright 2016 Bryan J. Hong # Licensed under the Apache License, Version 2.0