forked from switnet/quick-jibri-installer
Fix mixed system variable
This commit is contained in:
parent
bbb36f4644
commit
7f302560d7
|
@ -405,7 +405,7 @@ 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 JB_LANG
|
||||||
#Drop unsecure TLS
|
#Drop unsecure TLS
|
||||||
while [[ "$DROP_TLS1" != "yes" && "$DROP_TLS1" != "no" ]]
|
while [[ "$DROP_TLS1" != "yes" && "$DROP_TLS1" != "no" ]]
|
||||||
do
|
do
|
||||||
|
@ -732,12 +732,12 @@ sed -i "s|LOC_REC=.*|LOC_REC=\"on\"|" jitsi-updater.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Setup main language
|
#Setup main language
|
||||||
if [ -z $LANG ] || [ "$LANG" = "en" ]; then
|
if [ -z $JB_LANG ] || [ "$JB_LANG" = "en" ]; then
|
||||||
echo "Leaving English (en) as default language..."
|
echo "Leaving English (en) as default language..."
|
||||||
sed -i "s|// defaultLanguage: 'en',|defaultLanguage: 'en',|" $MEET_CONF
|
sed -i "s|// defaultLanguage: 'en',|defaultLanguage: 'en',|" $MEET_CONF
|
||||||
else
|
else
|
||||||
echo "Changing default language to: $LANG"
|
echo "Changing default language to: $JB_LANG"
|
||||||
sed -i "s|// defaultLanguage: 'en',|defaultLanguage: \'$LANG\',|" $MEET_CONF
|
sed -i "s|// defaultLanguage: 'en',|defaultLanguage: \'$JB_LANG\',|" $MEET_CONF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Check config file
|
#Check config file
|
||||||
|
|
Loading…
Reference in New Issue