Mercurial Hosting > luan
comparison host/update.sh @ 1632:0344a535b1db
add doc
| author | fffilimonov |
|---|---|
| date | Tue, 14 Dec 2021 07:41:01 +0000 |
| parents | 35c626c06dd5 |
| children | 61b0cc7db09c |
comparison
equal
deleted
inserted
replaced
| 1631:35c626c06dd5 | 1632:0344a535b1db |
|---|---|
| 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/nginx/mime.types local/mime.types; |
| 23 luan startup/nginx.conf.luan $(pwd) $(whoami) $(id -gn) > local/nginx.conf | 23 luan startup/nginx/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/nginx.default.conf.luan $(pwd) $(cat local/leKey.txt) > local/nginx.default.conf |
| 25 | 25 |
| 26 echo Starting... | 26 echo Starting... |
| 27 ./start.sh | 27 ./start.sh |
