Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
2014:1cdc12cdcfa2 | 2015:61b0cc7db09c |
---|---|
14 rm -f logs/* | 14 rm -f logs/* |
15 hg identify >logs/changeset.txt | 15 hg identify >logs/changeset.txt |
16 | 16 |
17 if [ ! -f local/leKey.txt ]; then | 17 if [ ! -f local/leKey.txt ]; then |
18 echo Register letsencrypt | 18 echo Register letsencrypt |
19 ./acme.sh --register-account --cert-home ./sites --config-home local/letsencrypt/config 2>&1 | grep 'ACCOUNT_THUMBPRINT' | awk -F "'" '{print $2}' > local/leKey.txt; | 19 ./acme.sh --set-default-ca --server letsencrypt |
20 fi; | 20 ./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 |
21 fi | |
21 | 22 |
22 cp startup/nginx/mime.types local/mime.types; | 23 cp startup/nginx/mime.types local/mime.types |
23 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) > local/nginx.conf | 24 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf |
24 luan startup/nginx/nginx.default.conf.luan $(pwd) $(cat local/leKey.txt) > local/nginx.default.conf | 25 luan startup/nginx/nginx.default.conf.luan $(pwd) $(cat local/leKey.txt) >local/nginx.default.conf |
25 | 26 |
26 echo Starting... | 27 echo Starting... |
27 ./start.sh | 28 ./start.sh |