Mercurial Hosting > luan
annotate host/update2.sh @ 2161:eb5bdf29a664 nginx_sites_addon tip
mkdir nginx_sites in update2.sh
| author | Violet7 |
|---|---|
| date | Wed, 28 Jan 2026 17:46:37 -0800 |
| parents | 059afc92310b |
| children |
| rev | line source |
|---|---|
| 1628 | 1 #!/bin/bash |
| 2 set -e | |
| 3 | |
| 4 ../scripts/build-luan.sh | |
| 5 | |
| 6 mkdir -p local | |
| 7 mkdir -p logs | |
| 2161 | 8 mkdir -p nginx_sites |
| 1628 | 9 rm -f logs/* |
| 10 hg identify >logs/changeset.txt | |
| 11 | |
| 2037 | 12 if [ ! -f local/tiny_account.key ]; then |
| 2096 | 13 echo "Register letsencrypt (tiny-acme)" |
| 14 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
|
15 fi |
| 1630 | 16 |
|
2015
61b0cc7db09c
Manually specify letsencrypt server due to acme default server change (to zerossl)
Violet7
parents:
1632
diff
changeset
|
17 cp startup/nginx/mime.types local/mime.types |
| 2037 | 18 # 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
|
19 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf |
| 2037 | 20 luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf |
| 1628 | 21 |
| 2096 | 22 # this is done because the nginx conf uses absolute paths |
| 23 # and this breaks sites when the luan/host directory is moved | |
|
2102
3112b06ab447
add host/update.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
2099
diff
changeset
|
24 luan classpath:luan/host/update.luan |
| 2096 | 25 |
| 1628 | 26 echo Starting... |
| 27 ./start.sh |
