From 722ae46a795ac64126a999d7bd055172d6bd429b Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 7 Feb 2016 22:09:01 -0800 Subject: [PATCH] put repo key in public directory the repo key wasn't in the right directory so it wasn't accessible through nginx --- assets/update_mirror.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/update_mirror.sh b/assets/update_mirror.sh index a35e738..a8d8337 100755 --- a/assets/update_mirror.sh +++ b/assets/update_mirror.sh @@ -7,11 +7,6 @@ UBUNTU_RELEASE=trusty UPSTREAM_URL="http://archive.ubuntu.com/ubuntu/" REPOS=( ${UBUNTU_RELEASE} ${UBUNTU_RELEASE}-updates ${UBUNTU_RELEASE}-security ) -# Export the GPG Public key -if [[ ! -f /opt/aptly/aptly_repo_key.pub ]]; then - gpg --export --armor > /opt/aptly/${HOSTNAME}_signing.key -fi - # Create repository mirrors if they don't exist set +e for repo in ${REPOS[@]}; do @@ -58,6 +53,11 @@ else fi set -e +# Export the GPG Public key +if [[ ! -f /opt/aptly/public/aptly_repo_signing.key ]]; then + gpg --export --armor > /opt/aptly/public/aptly_repo_signing.key +fi + # Generate Aptly Graph aptly graph cp `ls -rt /tmp/aptly-graph*.png | tail -n1` /opt/aptly/public/aptly_graph.png