Allow to enable/disable Welcome Page

This commit is contained in:
Luis Guzmán 2019-11-20 01:29:46 -06:00
parent bb55bc0c17
commit d5e5d00aa8
Signed by: Ark74
GPG Key ID: 35AD8DB3BE2C988C
1 changed files with 11 additions and 1 deletions

View File

@ -533,7 +533,17 @@ sed -i "s|// startWithVideoMuted: false,|startWithVideoMuted: true,|" $MEET_CONF
sed -i "s|// startAudioMuted: 10,|startAudioMuted: 1,|" $MEET_CONF
#Disable/enable welcome page
sed -i "s|// enableWelcomePage: true,|enableWelcomePage: true,|" $MEET_CONF
while [[ $ENABLE_WELCP != yes && $ENABLE_WELCP != no ]]
do
read -p "Do you want to disable the Welcome page: (yes or no)"$'\n' -r ENABLE_WELCP
if [ $ENABLE_WELCP = no ]; then
echo "Welcome page won't be enabled."
sed -i "s|// enableWelcomePage: true,|enableWelcomePage: false,|" $MEET_CONF
elif [ $ENABLE_WELCP = yes ]; then
echo "Welcome page will be enabled."
sed -i "s|// enableWelcomePage: true,|enableWelcomePage: true,|" $MEET_CONF
fi
done
#Set displayname as not required since jibri can't set it up.
sed -i "s|// requireDisplayName: true,|requireDisplayName: false,|" $MEET_CONF