1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git synced 2024-09-03 19:46:01 +02:00

syntax shell elif

This commit is contained in:
Gredin67 2020-04-26 15:45:55 +02:00 committed by GitHub
parent 428f7a8b17
commit 6f8acf1fad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -317,7 +317,8 @@ ynh_replace_string --match_string="uri: mautrix-whatsapp.db" --replace_string="u
if [ $botusers -eq "domain" ]
then
ynh_replace_string --match_string="example.com" --replace_string="$server_name" --target_file="$final_path/config.yaml"
else if [ $botusers -eq "admin" ]
elif [ $botusers -eq "admin" ]
then
ynh_replace_string --match_string="example.com" --replace_string="" --target_file="$final_path/config.yaml"
else
ynh_replace_string --match_string="example.com" --replace_string="$botusers" --target_file="$final_path/config.yaml"