Mercurial Hosting > luan
annotate host/update2.sh @ 2117:1e247cd012ee ssltesting
use site_dir/ssl for all ssl related files; raise error() on empty acme-tiny output.
| author | Violet7 |
|---|---|
| date | Tue, 06 Jan 2026 09:01:44 -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 | |
| 8 rm -f logs/* | |
| 9 hg identify >logs/changeset.txt | |
| 10 | |
| 2037 | 11 if [ ! -f local/tiny_account.key ]; then |
| 2096 | 12 echo "Register letsencrypt (tiny-acme)" |
| 13 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
|
14 fi |
| 1630 | 15 |
|
2015
61b0cc7db09c
Manually specify letsencrypt server due to acme default server change (to zerossl)
Violet7
parents:
1632
diff
changeset
|
16 cp startup/nginx/mime.types local/mime.types |
| 2037 | 17 # 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
|
18 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf |
| 2037 | 19 luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf |
| 1628 | 20 |
| 2096 | 21 # this is done because the nginx conf uses absolute paths |
| 22 # 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
|
23 luan classpath:luan/host/update.luan |
| 2096 | 24 |
| 1628 | 25 echo Starting... |
| 26 ./start.sh |
