Mercurial Hosting > luan
comparison host/renewSsl.sh @ 1758:27a2530f04b6
fix reload nginx from startup script
| author | Vadim Filimonov <fffilimonov@yandex.ru> |
|---|---|
| date | Mon, 20 Feb 2023 09:02:20 +0200 |
| parents | 0344a535b1db |
| children | a4435e2e3417 |
comparison
equal
deleted
inserted
replaced
| 1757:0e59609c3173 | 1758:27a2530f04b6 |
|---|---|
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | |
| 3 set -e | |
| 4 | 2 |
| 5 cd "$1"; | 3 cd "$1"; |
| 6 | 4 |
| 7 ROOTPWD=$(pwd); | 5 ROOTPWD=$(pwd); |
| 8 | 6 |
| 9 ./acme.sh --renew-all --cert-home "$ROOTPWD"/sites --config-home "$ROOTPWD"/local/letsencrypt/config; | 7 ./acme.sh --renew-all --cert-home "$ROOTPWD"/sites --config-home "$ROOTPWD"/local/letsencrypt/config; |
| 10 | 8 |
| 11 sudo $(which nginx) -s reload; | 9 sudo /usr/local/bin/nginx -s reload; |
