mirror of
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git
synced 2024-09-03 19:46:01 +02:00
authorized users $botusers
This commit is contained in:
parent
b6187f9d3f
commit
66b14dff75
1 changed files with 4 additions and 9 deletions
|
@ -312,17 +312,12 @@ ynh_replace_string --match_string="uri: mautrix-whatsapp.db" --replace_string="u
|
||||||
# mxid - Specific user
|
# mxid - Specific user
|
||||||
#permissions:
|
#permissions:
|
||||||
# "*": relaybot
|
# "*": 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=""*": 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"
|
# "example.com": user
|
||||||
# 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
|
|
||||||
ynh_replace_string --match_string="example.com" --replace_string="$botusers" --target_file="$final_path/config.yaml"
|
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:
|
# relaybot:
|
||||||
# # Whether or not relaybot support is enabled.
|
# # Whether or not relaybot support is enabled.
|
||||||
|
|
Loading…
Add table
Reference in a new issue