1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git synced 2024-09-03 19:46:01 +02:00

and again

This commit is contained in:
Gredin67 2020-04-26 16:26:11 +02:00 committed by GitHub
parent 53e104d1c8
commit a239cd90f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,10 +314,13 @@ ynh_replace_string --match_string="uri: mautrix-whatsapp.db" --replace_string="u
# "*": relaybot
#ynh_replace_string --match_string=""*": relaybot" --replace_string=""*": relaybot" --target_file="$final_path/config.yaml"
# "example.com": user
if [ $botusers == "domain" ]
echo "$botusers"
echo "domain"
echo "admin"
if [ "$botusers" = "domain" ]
then
ynh_replace_string --match_string='"example.com": user' --replace_string='"$server_name": user' --target_file='$final_path/config.yaml'
elif [ $botusers == "admin" ]
elif [ "$botusers" = "admin" ]
then
ynh_replace_string --match_string='"example.com": user' --replace_string='#"example.com": user' --target_file='$final_path/config.yaml'
else
@ -325,7 +328,7 @@ ynh_replace_string --match_string='"example.com": user' --replace_string='"$botu
fi
# "@admin:example.com": admin
ynh_replace_string --match_string='"@admin:example.com": admin' --replace_string='"$botadmin": admin' --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.