Mercurial Hosting > luan
comparison host/update.sh @ 2062:5ede71739221
merge branches
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sat, 15 Nov 2025 18:07:51 -0700 |
| parents | a4435e2e3417 |
| children |
comparison
equal
deleted
inserted
replaced
| 2047:ea026254b3b6 | 2062:5ede71739221 |
|---|---|
| 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 |
