jigasi,web: add transcription options
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
8d48317aae
commit
e48bf46f7c
@@ -78,9 +78,24 @@ if [[ ! -f /config/config.js ]]; then
|
||||
-e "/enableWelcomePage/a\ etherpad_base: '/etherpad/p/'," \
|
||||
/config/config.js
|
||||
fi
|
||||
|
||||
if [[ $ENABLE_TRANSCRIPTIONS -eq 1 || "$ENABLE_TRANSCRIPTIONS" == "true" ]]; then
|
||||
sed -i \
|
||||
-e "s#// transcribingEnabled:.*#transcribingEnabled: true,#" \
|
||||
/config/config.js
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! -f /config/interface_config.js ]]; then
|
||||
cp /defaults/interface_config.js /config/interface_config.js
|
||||
|
||||
# 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 \
|
||||
-e "s#'closedcaptions', ##" \
|
||||
/config/interface_config.js
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user