From 53e104d1c8bcca63e362d6a5135ccc02ca96e1ca Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Sun, 26 Apr 2020 16:15:11 +0200 Subject: [PATCH] string comparator == --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 48f41f2..2c3b812 100755 --- a/scripts/install +++ b/scripts/install @@ -314,10 +314,10 @@ ynh_replace_string --match_string="uri: mautrix-whatsapp.db" --replace_string="u # "*": relaybot #ynh_replace_string --match_string=""*": relaybot" --replace_string=""*": relaybot" --target_file="$final_path/config.yaml" # "example.com": user -if [ $botusers -eq "domain" ] +if [ $botusers == "domain" ] then ynh_replace_string --match_string='"example.com": user' --replace_string='"$server_name": user' --target_file='$final_path/config.yaml' -elif [ $botusers -eq "admin" ] +elif [ $botusers == "admin" ] then ynh_replace_string --match_string='"example.com": user' --replace_string='#"example.com": user' --target_file='$final_path/config.yaml' else