Mercurial Hosting > luan
comparison host/update2.sh @ 2134:de3107eb911f
improve previous
| author | Violet7 |
|---|---|
| date | Fri, 16 Jan 2026 17:59:40 -0800 |
| parents | c3b4c19f2d8a |
| children |
comparison
equal
deleted
inserted
replaced
| 2133:c3b4c19f2d8a | 2134:de3107eb911f |
|---|---|
| 31 exit 1 | 31 exit 1 |
| 32 fi | 32 fi |
| 33 | 33 |
| 34 # id -gn gets the name of the primary group of the current user (staff) | 34 # id -gn gets the name of the primary group of the current user (staff) |
| 35 luan startup/nginx/nginx.conf.luan $(pwd) $nginx_conf_dir $(whoami) $(id -gn) | sudo tee $nginx_conf_dir/luanhost.conf >/dev/null | 35 luan startup/nginx/nginx.conf.luan $(pwd) $nginx_conf_dir $(whoami) $(id -gn) | sudo tee $nginx_conf_dir/luanhost.conf >/dev/null |
| 36 luan startup/nginx/nginx.default.conf.luan $(pwd) | sudo tee $nginx_conf_dir/luanhost.default.conf >/dev/null | 36 # DON'T put this in the auto-loaded configs dir, |
| 37 # it is not meant to be loaded on its own. | |
| 38 luan startup/nginx/nginx.default.conf.luan $(pwd) >$(pwd)/local/luanhost.default.conf | |
| 37 | 39 |
| 38 # this is done because the nginx conf uses absolute paths | 40 # this is done because the nginx conf uses absolute paths |
| 39 # and this breaks sites when the luan/host directory is moved | 41 # and this breaks sites when the luan/host directory is moved |
| 40 luan classpath:luan/host/update.luan | 42 luan classpath:luan/host/update.luan |
| 41 | 43 |
