Don't fail if AWS upload credentials aren't there

lektura
Guido Günther 2017-09-14 09:46:05 +02:00
parent d071ac7720
commit b8dc671c46
1 changed files with 5 additions and 3 deletions

View File

@ -22,9 +22,11 @@ else
hugo
#
# After building the website, we set the AWS credentials and uploda
# After building the website, we set the AWS credentials and uplodad
# everything to our AWS s3 bucket.
#
. /srv/cred/aws.sh
/usr/local/bin/aws s3 cp /usr/share/blog/public/ s3://aws-website-pmpc-soegm/ --recursive
if [ -f /srv/cred/aws.sh ]; then
. /srv/cred/aws.sh
/usr/local/bin/aws s3 cp /usr/share/blog/public/ s3://aws-website-pmpc-soegm/ --recursive
fi
fi