add certbot email, pin git pull to origin main

This commit is contained in:
2026-03-20 19:57:45 -04:00
parent de1d60b1db
commit a37872489c
+3 -3
View File
@@ -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