From d5e5d00aa85039c43bc44a2750234212885bd391 Mon Sep 17 00:00:00 2001 From: Luis Guzman Date: Wed, 20 Nov 2019 01:29:46 -0600 Subject: [PATCH] Allow to enable/disable Welcome Page --- quick_jibri_installer.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index 56604ad..e0c7001 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -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