mirror of
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git
synced 2024-09-03 19:46:01 +02:00
Update bot users and admin rights
This commit is contained in:
parent
6f8acf1fad
commit
49546c81c7
1 changed files with 4 additions and 4 deletions
|
@ -316,16 +316,16 @@ ynh_replace_string --match_string="uri: mautrix-whatsapp.db" --replace_string="u
|
||||||
# "example.com": user
|
# "example.com": user
|
||||||
if [ $botusers -eq "domain" ]
|
if [ $botusers -eq "domain" ]
|
||||||
then
|
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" ]
|
elif [ $botusers -eq "admin" ]
|
||||||
then
|
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
|
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
|
fi
|
||||||
|
|
||||||
# "@admin:example.com": admin
|
# "@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:
|
# relaybot:
|
||||||
# # Whether or not relaybot support is enabled.
|
# # Whether or not relaybot support is enabled.
|
||||||
|
|
Loading…
Add table
Reference in a new issue