add certbot email, pin git pull to origin main
This commit is contained in:
+3
-3
@@ -26,7 +26,7 @@ NGINXCONF
|
||||
trap 'rm -f "/opt/hantim/docker/nginx/conf.d/$APP.conf"' EXIT
|
||||
docker exec nginx nginx -t && docker exec nginx nginx -s reload
|
||||
certbot certonly --webroot -w /opt/hantim/docker/nginx/certbot/www \
|
||||
--non-interactive --agree-tos --register-unsafely-without-email \
|
||||
--non-interactive --agree-tos -m timothykim@fastmail.fm \
|
||||
--cert-name "$APP" -d "$APP" -d "www.$APP"
|
||||
rm -f "/opt/hantim/docker/nginx/conf.d/$APP.conf"
|
||||
trap - EXIT
|
||||
@@ -36,7 +36,7 @@ fi
|
||||
|
||||
if [ "$CMD" = "provision" ]; then
|
||||
cd /opt/hantim
|
||||
git pull
|
||||
git pull origin main
|
||||
bash scripts/configure.sh
|
||||
exit 0
|
||||
fi
|
||||
@@ -48,7 +48,7 @@ fi
|
||||
|
||||
APP="${CMD#deploy-}"
|
||||
cd /opt/hantim
|
||||
git pull
|
||||
git pull origin main
|
||||
|
||||
# Re-exec so the running script reflects any changes just pulled
|
||||
if [ -z "${DEPLOY_REEXEC:-}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user