Browse Source

web: always rebuild nginx configs on start

Felix Geyer 4 năm trước cách đây
mục cha
commit
c36c4d0
1 tập tin đã thay đổi với 5 bổ sung8 xóa
  1. 5 8
      web/rootfs/etc/cont-init.d/10-config

+ 5 - 8
web/rootfs/etc/cont-init.d/10-config

@@ -54,17 +54,14 @@ fi
 # copy config files
 tpl /defaults/nginx.conf > /config/nginx/nginx.conf
 
-if [[ ! -f /config/nginx/meet.conf ]]; then
-    tpl /defaults/meet.conf > /config/nginx/meet.conf
+tpl /defaults/meet.conf > /config/nginx/meet.conf
+if [[ -f /config/nginx/custom-meet.conf ]]; then
+    cat /config/nginx/custom-meet.conf >> /config/nginx/meet.conf
 fi
 
-if [[ ! -f /config/nginx/ssl.conf ]]; then
-    tpl /defaults/ssl.conf > /config/nginx/ssl.conf
-fi
+tpl /defaults/ssl.conf > /config/nginx/ssl.conf
 
-if [[ ! -f /config/nginx/site-confs/default ]]; then
-    tpl /defaults/default > /config/nginx/site-confs/default
-fi
+tpl /defaults/default > /config/nginx/site-confs/default
 
 cp /defaults/config.js /config/config.js
 tpl /defaults/system-config.js >> /config/config.js