From f23db5ca3b51cfc3b25c6a324e2639024afeefa2 Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Sun, 26 Apr 2020 16:59:57 +0200 Subject: [PATCH] again --- scripts/install | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 257132f..b7d3c27 100755 --- a/scripts/install +++ b/scripts/install @@ -312,19 +312,16 @@ ynh_replace_string --match_string="uri: mautrix-whatsapp.db" --replace_string="u # mxid - Specific user #permissions: # "*": relaybot -ynh_replace_string --match_string="'*': relaybot" --replace_string="'': relaybot" --target_file="$final_path/config.yaml" +#ynh_replace_string --match_string="'*': relaybot" --replace_string="'': relaybot" --target_file="$final_path/config.yaml" # "@admin:example.com": admin ynh_replace_string --match_string="@admin:example.com" --replace_string="$botadmin" --target_file="$final_path/config.yaml" # "example.com": user -echo "$botusers" -echo "domain" -echo "admin" if [ "$botusers" = "domain" ] then ynh_replace_string --match_string="example.com" --replace_string="$server_name" --target_file="$final_path/config.yaml" elif [ "$botusers" = "admin" ] then -#ynh_replace_string --match_string='"example.com": user' --replace_string='#"example.com": user' --target_file="$final_path/config.yaml" +ynh_replace_string --match_string="'example.com': user" --replace_string="#'example.com': user" --target_file="$final_path/config.yaml" else ynh_replace_string --match_string="example.com" --replace_string="$botusers" --target_file="$final_path/config.yaml" fi