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,17 +82,19 @@ if [[ -f /config/custom-config.js ]]; then
|
|||||||
cat /config/custom-config.js >> /config/config.js
|
cat /config/custom-config.js >> /config/config.js
|
||||||
fi
|
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
|
cp /defaults/interface_config.js /config/interface_config.js
|
||||||
if [[ -f /config/custom-interface_config.js ]]; then
|
fi
|
||||||
cat /config/custom-interface_config.js >> /config/interface_config.js
|
|
||||||
fi
|
|
||||||
|
|
||||||
# It will remove parameter 'closedcaptions' from TOOLBAR_BUTTONS if ENABLE_TRANSCRIPTIONS is false,
|
if [[ -f /config/custom-interface_config.js ]]; then
|
||||||
# because it enabled by default, but not supported out of the box.
|
cat /config/custom-interface_config.js >> /config/interface_config.js
|
||||||
if [[ $ENABLE_TRANSCRIPTIONS -ne 1 && "$ENABLE_TRANSCRIPTIONS" != "true" ]]; then
|
fi
|
||||||
|
|
||||||
|
# It will remove parameter 'closedcaptions' from TOOLBAR_BUTTONS if ENABLE_TRANSCRIPTIONS is false,
|
||||||
|
# because it enabled by default, but not supported out of the box.
|
||||||
|
if [[ $ENABLE_TRANSCRIPTIONS -ne 1 && "$ENABLE_TRANSCRIPTIONS" != "true" ]]; then
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "s#'closedcaptions', ##" \
|
-e "s#'closedcaptions', ##" \
|
||||||
/config/interface_config.js
|
/config/interface_config.js
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user