mirror of
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git
synced 2024-09-03 19:46:01 +02:00
again
This commit is contained in:
parent
bb52075dbc
commit
f23db5ca3b
1 changed files with 2 additions and 5 deletions
|
@ -312,19 +312,16 @@ ynh_replace_string --match_string="uri: mautrix-whatsapp.db" --replace_string="u
|
||||||
# mxid - Specific user
|
# mxid - Specific user
|
||||||
#permissions:
|
#permissions:
|
||||||
# "*": relaybot
|
# "*": 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
|
# "@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" --replace_string="$botadmin" --target_file="$final_path/config.yaml"
|
||||||
# "example.com": user
|
# "example.com": user
|
||||||
echo "$botusers"
|
|
||||||
echo "domain"
|
|
||||||
echo "admin"
|
|
||||||
if [ "$botusers" = "domain" ]
|
if [ "$botusers" = "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" --replace_string="$server_name" --target_file="$final_path/config.yaml"
|
||||||
elif [ "$botusers" = "admin" ]
|
elif [ "$botusers" = "admin" ]
|
||||||
then
|
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
|
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
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue