diff host/update2.sh @ 2134:de3107eb911f

improve previous
author Violet7
date Fri, 16 Jan 2026 17:59:40 -0800
parents c3b4c19f2d8a
children
line wrap: on
line diff
--- a/host/update2.sh	Fri Jan 16 17:29:05 2026 -0800
+++ b/host/update2.sh	Fri Jan 16 17:59:40 2026 -0800
@@ -33,7 +33,9 @@
 
 # id -gn gets the name of the primary group of the current user (staff)
 luan startup/nginx/nginx.conf.luan $(pwd) $nginx_conf_dir $(whoami) $(id -gn) | sudo tee $nginx_conf_dir/luanhost.conf >/dev/null
-luan startup/nginx/nginx.default.conf.luan $(pwd) | sudo tee $nginx_conf_dir/luanhost.default.conf >/dev/null
+# DON'T put this in the auto-loaded configs dir,
+# it is not meant to be loaded on its own.
+luan startup/nginx/nginx.default.conf.luan $(pwd) >$(pwd)/local/luanhost.default.conf
 
 # this is done because the nginx conf uses absolute paths
 # and this breaks sites when the luan/host directory is moved