From 66b14dff75bd52585eb6a2dc76a02b097cb27a3b Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Sun, 26 Apr 2020 14:19:00 +0200 Subject: [PATCH] authorized users $botusers --- scripts/install | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index aeafff4..d9a29f5 100755 --- a/scripts/install +++ b/scripts/install @@ -312,17 +312,12 @@ ynh_replace_string --match_string="uri: mautrix-whatsapp.db" --replace_string="u # mxid - Specific user #permissions: # "*": relaybot -# "example.com": user -# "@admin:example.com": admin #ynh_replace_string --match_string=""*": relaybot" --replace_string=""*": relaybot" --target_file="$final_path/config.yaml" -ynh_replace_string --match_string="@admin:example.com" --replace_string="$botadmin" --target_file="$final_path/config.yaml" -# Make app public if necessary -if [ $is_public -eq 1 ] -then -ynh_replace_string --match_string="example.com" --replace_string="$domain" --target_file="$final_path/config.yaml" -else +# "example.com": user ynh_replace_string --match_string="example.com" --replace_string="$botusers" --target_file="$final_path/config.yaml" -fi +#ynh_replace_string --match_string="example.com" --replace_string="$domain" --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" # relaybot: # # Whether or not relaybot support is enabled.