From 49546c81c7bf9ed691d6301497883b66dd23f371 Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Sun, 26 Apr 2020 16:08:47 +0200 Subject: [PATCH] Update bot users and admin rights --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 9917fa5..48f41f2 100755 --- a/scripts/install +++ b/scripts/install @@ -316,16 +316,16 @@ ynh_replace_string --match_string="uri: mautrix-whatsapp.db" --replace_string="u # "example.com": user if [ $botusers -eq "domain" ] then -ynh_replace_string --match_string="example.com" --replace_string="$server_name" --target_file="$final_path/config.yaml" +ynh_replace_string --match_string='"example.com": user' --replace_string='"$server_name": user' --target_file='$final_path/config.yaml' elif [ $botusers -eq "admin" ] then -ynh_replace_string --match_string="example.com" --replace_string="" --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" +ynh_replace_string --match_string='"example.com": user' --replace_string='"$botusers": user' --target_file='$final_path/config.yaml' fi # "@admin:example.com": admin -ynh_replace_string --match_string="@admin:example.com" --replace_string="$botadmin" --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.