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
|
trap 'rm -f "/opt/hantim/docker/nginx/conf.d/$APP.conf"' EXIT
|
||||||
docker exec nginx nginx -t && docker exec nginx nginx -s reload
|
docker exec nginx nginx -t && docker exec nginx nginx -s reload
|
||||||
certbot certonly --webroot -w /opt/hantim/docker/nginx/certbot/www \
|
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"
|
--cert-name "$APP" -d "$APP" -d "www.$APP"
|
||||||
rm -f "/opt/hantim/docker/nginx/conf.d/$APP.conf"
|
rm -f "/opt/hantim/docker/nginx/conf.d/$APP.conf"
|
||||||
trap - EXIT
|
trap - EXIT
|
||||||
@@ -36,7 +36,7 @@ fi
|
|||||||
|
|
||||||
if [ "$CMD" = "provision" ]; then
|
if [ "$CMD" = "provision" ]; then
|
||||||
cd /opt/hantim
|
cd /opt/hantim
|
||||||
git pull
|
git pull origin main
|
||||||
bash scripts/configure.sh
|
bash scripts/configure.sh
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@@ -48,7 +48,7 @@ fi
|
|||||||
|
|
||||||
APP="${CMD#deploy-}"
|
APP="${CMD#deploy-}"
|
||||||
cd /opt/hantim
|
cd /opt/hantim
|
||||||
git pull
|
git pull origin main
|
||||||
|
|
||||||
# Re-exec so the running script reflects any changes just pulled
|
# Re-exec so the running script reflects any changes just pulled
|
||||||
if [ -z "${DEPLOY_REEXEC:-}" ]; then
|
if [ -z "${DEPLOY_REEXEC:-}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user