From a239cd90f5e820432b8579cd8b99c9c92ffac721 Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Sun, 26 Apr 2020 16:26:11 +0200 Subject: [PATCH] and again --- scripts/install | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 2c3b812..4d8589d 100755 --- a/scripts/install +++ b/scripts/install @@ -314,10 +314,13 @@ 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 == "domain" ] +echo "$botusers" +echo "domain" +echo "admin" +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 == "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 @@ -325,7 +328,7 @@ ynh_replace_string --match_string='"example.com": user' --replace_string='"$botu fi # "@admin:example.com": admin -ynh_replace_string --match_string='"@admin:example.com": admin' --replace_string='"$botadmin": admin' --target_file="$final_path/config.yaml" +ynh_replace_string --match_string='"@admin:example.com": admin' --replace_string='"$botadmin": admin' --target_file='$final_path/config.yaml' # relaybot: # # Whether or not relaybot support is enabled.