File tree 1 file changed +13
-11
lines changed
web/rootfs/etc/cont-init.d 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -82,17 +82,19 @@ if [[ -f /config/custom-config.js ]]; then
82
82
cat /config/custom-config.js >> /config/config.js
83
83
fi
84
84
85
- if [[ ! -f /config/interface_config.js ]]; then
85
+ if [[ ! -f /config/interface_config.js || -f /config/custom-interface_config.js ]]; then
86
86
cp /defaults/interface_config.js /config/interface_config.js
87
- if [[ -f /config/custom-interface_config.js ]]; then
88
- cat /config/custom-interface_config.js >> /config/interface_config.js
89
- fi
87
+ fi
90
88
91
- # It will remove parameter 'closedcaptions' from TOOLBAR_BUTTONS if ENABLE_TRANSCRIPTIONS is false,
92
- # because it enabled by default, but not supported out of the box.
93
- if [[ $ENABLE_TRANSCRIPTIONS -ne 1 && "$ENABLE_TRANSCRIPTIONS" != "true" ]]; then
94
- sed -i \
95
- -e "s#'closedcaptions', ##" \
96
- /config/interface_config.js
97
- fi
89
+ if [[ -f /config/custom-interface_config.js ]]; then
90
+ cat /config/custom-interface_config.js >> /config/interface_config.js
98
91
fi
92
+
93
+ # It will remove parameter 'closedcaptions' from TOOLBAR_BUTTONS if ENABLE_TRANSCRIPTIONS is false,
94
+ # because it enabled by default, but not supported out of the box.
95
+ if [[ $ENABLE_TRANSCRIPTIONS -ne 1 && "$ENABLE_TRANSCRIPTIONS" != "true" ]]; then
96
+ sed -i \
97
+ -e "s#'closedcaptions', ##" \
98
+ /config/interface_config.js
99
+ fi
100
+
You can’t perform that action at this time.
0 commit comments