Force mandatory field and fix variable name.

This commit is contained in:
Luis Guzmán 2020-04-13 23:48:01 -05:00
parent cd8950111d
commit 1909adb669
1 changed files with 8 additions and 5 deletions

View File

@ -268,7 +268,10 @@ https://github.com/jitsi/jitsi-meet/blob/master/lang/languages.json
Jitsi Meet web interface will be set to use such language. Jitsi Meet web interface will be set to use such language.
" "
read -p "Please set your language (Press enter to default to 'en'):"$'\n' -r LANG read -p "Please set your language (Press enter to default to 'en'):"$'\n' -r LANG
read -p "Set sysadmin email: "$'\n' -r SYSADMIN_EMAIL while [[ -z $SYSADMIN_EMAIL ]]
do
read -p "Set sysadmin email (this is a mandatory field):"$'\n' -r SYSADMIN_EMAIL
done
#Drop unsecure TLS #Drop unsecure TLS
while [[ $DROP_TLS1 != yes && $DROP_TLS1 != no ]] while [[ $DROP_TLS1 != yes && $DROP_TLS1 != no ]]
do do
@ -312,12 +315,12 @@ done
echo "We'll take a minute to localize some UI excerpts if you need." echo "We'll take a minute to localize some UI excerpts if you need."
#Participant #Participant
echo "> Do you want to translate 'Participant' to your own language?" echo "> Do you want to translate 'Participant' to your own language?"
read -p "Leave empty to use the default one:" L10N_PARTICIPANT read -p "Leave empty to use the default one (English): " L10N_PARTICIPANT
#Me #Me
echo "> Do you want to translate 'me' to your own language? echo "> Do you want to translate 'me' to your own language?
This must be a really small word to present one self. This must be a really small word to present one self.
Some suggestions might be: yo (Spanish) | je (French) | ich (German)" Some suggestions might be: yo (Spanish) | je (French) | ich (German)"
read -p "Leave empty to use the default one:" L10N_ME read -p "Leave empty to use the default one (English): " L10N_ME
#Welcome Page #Welcome Page
while [[ $ENABLE_WELCP != yes && $ENABLE_WELCP != no ]] while [[ $ENABLE_WELCP != yes && $ENABLE_WELCP != no ]]
do do
@ -467,10 +470,10 @@ sed -i "/c2s_require_encryption = false/a \\
\\ \\
consider_bosh_secure = true" $PROSODY_SYS consider_bosh_secure = true" $PROSODY_SYS
if [ ! -z $L10N_PARTICIPANT ]; then if [ ! -z $L10N_PARTICIPANT ]; then
sed -i "s|PART_USER=.*|PART_USER=\"$L10N_PARTICIPANT\"|" jb-bm.sh sed -i "s|PART_USER=.*|PART_USER=\"$L10N_PARTICIPANT\"|" jm-bm.sh
fi fi
if [ ! -z $L10N_ME ]; then if [ ! -z $L10N_ME ]; then
sed -i "s|LOCAL_USER=.*|LOCAL_USER=\"$L10N_PARTICIPANT\"|" jb-bm.sh sed -i "s|LOCAL_USER=.*|LOCAL_USER=\"$L10N_PARTICIPANT\"|" jm-bm.sh
fi fi
if [ ! -f $MOD_LIST_FILE ]; then if [ ! -f $MOD_LIST_FILE ]; then
echo " echo "