From 6f8acf1fad5aec0f11e921d6ff90ef761eff2d8d Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Sun, 26 Apr 2020 15:45:55 +0200 Subject: [PATCH] syntax shell elif --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 546dae5..9917fa5 100755 --- a/scripts/install +++ b/scripts/install @@ -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"