delete obsolete build script

lektura
max.mehl 2021-03-05 13:16:16 +01:00
parent fc1fd4e2c2
commit e6f03bbea7
No known key found for this signature in database
GPG Key ID: 2704E4AB371E2E92
1 changed files with 0 additions and 39 deletions

View File

@ -1,39 +0,0 @@
#!/bin/bash
basedir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
cd "$basedir"
mode=$1
# Execute hugo buildrun
if [ "$mode" == "server" ]; then
hugo server
elif [ "$mode" == "syntax" ]; then
hugo
else
status=1
tries=0
while [[ $status -ne 0 ]]; do
hugo
status=$?
(( tries++ ))
if [[ $status != 0 && $tries -le 2 ]]; then
echo "Build error with exit status $status on try $tries. Try again now"
elif [[ $status != 0 && $tries -gt 2 ]]; then
echo "Build failed 3 times in a row. Don't try again."
exit 1
fi
done
## After successfully building the website, we set the AWS credentials and upload
## everything to our AWS s3 bucket.
##
#if [ -f /srv/cred/aws.sh ]; then
# . /srv/cred/aws.sh
# /usr/local/bin/aws configure set default.s3.max_concurrent_requests 2
# /usr/local/bin/aws s3 cp /usr/share/blog/public/ s3://aws-website-pmpc-soegm/ --recursive
#fi
fi