web: recreate interface_config.js on container restart
Recreate interface_config.js on container restart if custom-interface_config.js exists
This commit is contained in:
@@ -82,8 +82,10 @@ if [[ -f /config/custom-config.js ]]; then
|
||||
cat /config/custom-config.js >> /config/config.js
|
||||
fi
|
||||
|
||||
if [[ ! -f /config/interface_config.js ]]; then
|
||||
if [[ ! -f /config/interface_config.js || -f /config/custom-interface_config.js ]]; then
|
||||
cp /defaults/interface_config.js /config/interface_config.js
|
||||
fi
|
||||
|
||||
if [[ -f /config/custom-interface_config.js ]]; then
|
||||
cat /config/custom-interface_config.js >> /config/interface_config.js
|
||||
fi
|
||||
@@ -95,4 +97,4 @@ if [[ ! -f /config/interface_config.js ]]; then
|
||||
-e "s#'closedcaptions', ##" \
|
||||
/config/interface_config.js
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user