Mercurial Hosting > luan
comparison host/update.sh @ 2037:a4435e2e3417 acme-tiny
Edit scripts to use acme-tiny
| author | Violet7 |
|---|---|
| date | Sat, 08 Nov 2025 04:29:49 -0800 |
| parents | 61b0cc7db09c |
| children |
comparison
equal
deleted
inserted
replaced
| 2036:2740f8a9ba3a | 2037:a4435e2e3417 |
|---|---|
| 12 mkdir -p local | 12 mkdir -p local |
| 13 mkdir -p logs | 13 mkdir -p logs |
| 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/tiny_account.key ]; then |
| 18 echo Register letsencrypt | 18 echo "Register letsencrypt (tiny-acme)" |
| 19 ./acme.sh --set-default-ca --server letsencrypt | 19 openssl genrsa 4096 > local/tiny_account.key |
| 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 | 20 fi |
| 22 | 21 |
| 23 cp startup/nginx/mime.types local/mime.types | 22 cp startup/nginx/mime.types local/mime.types |
| 23 # id -gn gets the name of the primary group of the current user (staff) | |
| 24 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 |
| 25 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) >local/nginx.default.conf |
| 26 | 26 |
| 27 echo Starting... | 27 echo Starting... |
| 28 ./start.sh | 28 ./start.sh |
