put repo key in public directory

the repo key wasn't in the right directory so it wasn't accessible
through nginx
This commit is contained in:
Bryan 2016-02-07 22:09:01 -08:00
parent ad77561f0c
commit 722ae46a79
1 changed files with 5 additions and 5 deletions

View File

@ -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