Mercurial Hosting > luan
annotate 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 |
| rev | line source |
|---|---|
| 1628 | 1 #!/bin/bash |
| 2 | |
| 3 set -e | |
| 4 | |
| 5 ./stop.sh | |
| 6 | |
| 7 echo Updating hg | |
| 1629 | 8 hg pull -u |
| 1628 | 9 |
| 10 ../scripts/build-luan.sh | |
| 11 | |
| 12 mkdir -p local | |
| 13 mkdir -p logs | |
| 14 rm -f logs/* | |
| 15 hg identify >logs/changeset.txt | |
| 16 | |
| 2037 | 17 if [ ! -f local/tiny_account.key ]; then |
| 18 echo "Register letsencrypt (tiny-acme)" | |
| 19 openssl genrsa 4096 > local/tiny_account.key | |
|
2015
61b0cc7db09c
Manually specify letsencrypt server due to acme default server change (to zerossl)
Violet7
parents:
1632
diff
changeset
|
20 fi |
| 1630 | 21 |
|
2015
61b0cc7db09c
Manually specify letsencrypt server due to acme default server change (to zerossl)
Violet7
parents:
1632
diff
changeset
|
22 cp startup/nginx/mime.types local/mime.types |
| 2037 | 23 # id -gn gets the name of the primary group of the current user (staff) |
|
2015
61b0cc7db09c
Manually specify letsencrypt server due to acme default server change (to zerossl)
Violet7
parents:
1632
diff
changeset
|
24 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf |
| 2037 | 25 luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf |
| 1628 | 26 |
| 27 echo Starting... | |
| 28 ./start.sh |
