Mercurial Hosting > luan
diff host/update.sh @ 2015:61b0cc7db09c default tip fixssl
Manually specify letsencrypt server due to acme default server change (to zerossl)
author | Violet7 |
---|---|
date | Sat, 27 Sep 2025 13:37:11 -0700 |
parents | 0344a535b1db |
children |
line wrap: on
line diff
--- a/host/update.sh Thu Sep 25 23:41:41 2025 -0600 +++ b/host/update.sh Sat Sep 27 13:37:11 2025 -0700 @@ -16,12 +16,13 @@ if [ ! -f local/leKey.txt ]; then echo Register letsencrypt - ./acme.sh --register-account --cert-home ./sites --config-home local/letsencrypt/config 2>&1 | grep 'ACCOUNT_THUMBPRINT' | awk -F "'" '{print $2}' > local/leKey.txt; -fi; + ./acme.sh --set-default-ca --server letsencrypt + ./acme.sh --register-account --server letsencrypt --cert-home ./sites --config-home local/letsencrypt/config 2>&1 | grep 'ACCOUNT_THUMBPRINT' | awk -F "'" '{print $2}' >local/leKey.txt +fi -cp startup/nginx/mime.types local/mime.types; -luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) > local/nginx.conf -luan startup/nginx/nginx.default.conf.luan $(pwd) $(cat local/leKey.txt) > local/nginx.default.conf +cp startup/nginx/mime.types local/mime.types +luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf +luan startup/nginx/nginx.default.conf.luan $(pwd) $(cat local/leKey.txt) >local/nginx.default.conf echo Starting... ./start.sh