Skip to content

Commit c36c4d0

Browse files
debfxsaghul
authored andcommitted
web: always rebuild nginx configs on start
1 parent 5584aa2 commit c36c4d0

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

web/rootfs/etc/cont-init.d/10-config

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,14 @@ fi
5454
# copy config files
5555
tpl /defaults/nginx.conf > /config/nginx/nginx.conf
5656

57-
if [[ ! -f /config/nginx/meet.conf ]]; then
58-
tpl /defaults/meet.conf > /config/nginx/meet.conf
57+
tpl /defaults/meet.conf > /config/nginx/meet.conf
58+
if [[ -f /config/nginx/custom-meet.conf ]]; then
59+
cat /config/nginx/custom-meet.conf >> /config/nginx/meet.conf
5960
fi
6061

61-
if [[ ! -f /config/nginx/ssl.conf ]]; then
62-
tpl /defaults/ssl.conf > /config/nginx/ssl.conf
63-
fi
62+
tpl /defaults/ssl.conf > /config/nginx/ssl.conf
6463

65-
if [[ ! -f /config/nginx/site-confs/default ]]; then
66-
tpl /defaults/default > /config/nginx/site-confs/default
67-
fi
64+
tpl /defaults/default > /config/nginx/site-confs/default
6865

6966
cp /defaults/config.js /config/config.js
7067
tpl /defaults/system-config.js >> /config/config.js

0 commit comments

Comments
 (0)