diff --git a/lnplay b/lnplay index 9384f74..178d03c 160000 --- a/lnplay +++ b/lnplay @@ -1 +1 @@ -Subproject commit 9384f74c3a4a088a57d8aba13ab58f1cd843764d +Subproject commit 178d03c01dbb17e8fe5b9fd47040a79758dc4075 diff --git a/www/generate_certs.sh b/www/generate_certs.sh index b39350c..4d1a6b1 100755 --- a/www/generate_certs.sh +++ b/www/generate_certs.sh @@ -39,7 +39,7 @@ for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do done fi - GENERATE_CERT_STRING="docker run -it --rm --name certbot -p 80:80 -p 443:443 -v $REMOTE_DATA_PATH_LETSENCRYPT/$DOMAIN_NAME:/etc/letsencrypt -v /var/lib/letsencrypt:/var/lib/letsencrypt -v $REMOTE_DATA_PATH_LETSENCRYPT/$DOMAIN_NAME/_logs:/var/log/letsencrypt certbot/certbot certonly -v --noninteractive --agree-tos --key-type ecdsa --standalone --expand ${DOMAIN_STRING} --email $CERTIFICATE_EMAIL_ADDRESS" + GENERATE_CERT_STRING="docker run -t --rm --name certbot -p 80:80 -p 443:443 -v $REMOTE_DATA_PATH_LETSENCRYPT/$DOMAIN_NAME:/etc/letsencrypt -v /var/lib/letsencrypt:/var/lib/letsencrypt -v $REMOTE_DATA_PATH_LETSENCRYPT/$DOMAIN_NAME/_logs:/var/log/letsencrypt certbot/certbot certonly -v --noninteractive --agree-tos --key-type ecdsa --standalone --expand ${DOMAIN_STRING} --email $CERTIFICATE_EMAIL_ADDRESS" # execute the certbot command that we dynamically generated. eval "$GENERATE_CERT_STRING" diff --git a/www/go.sh b/www/go.sh index 9f428f9..8b8cd97 100755 --- a/www/go.sh +++ b/www/go.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -eu +set -exu cd "$(dirname "$0")" # Create the nginx config file which covers all domainys.