Mercurial Hosting > luan
comparison host/update.sh @ 1631:35c626c06dd5
add startup scripts for mac os
| author | fffilimonov |
|---|---|
| date | Mon, 13 Dec 2021 09:14:52 +0000 |
| parents | b735ed134662 |
| children | 0344a535b1db |
comparison
equal
deleted
inserted
replaced
| 1630:b735ed134662 | 1631:35c626c06dd5 |
|---|---|
| 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 --register-account --cert-home ./sites --config-home local/letsencrypt/config 2>&1 | grep 'ACCOUNT_THUMBPRINT' | awk -F "'" '{print $2}' > local/leKey.txt; |
| 20 fi; | 20 fi; |
| 21 | 21 |
| 22 cp startup/mime.types local/mime.types; | 22 cp startup/mime.types local/mime.types; |
| 23 luan startup/nginx.conf.luan $(pwd) $(whoami) $(id -gn) > local/nginx.conf | 23 luan startup/nginx.conf.luan $(pwd) $(whoami) $(id -gn) > local/nginx.conf |
| 24 luan startup/nginx.default.conf.luan $(pwd) $(cat local/leKey.txt) > local/nginx.default.conf | 24 luan startup/nginx.default.conf.luan $(pwd) $(cat local/leKey.txt) > local/nginx.default.conf |
