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

Update install

This commit is contained in:
Gredin67 2021-02-06 00:48:13 +01:00 committed by GitHub
parent d70a44b9a6
commit f14b1fecd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,14 +274,14 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start"
# Wait until the synapse user is created
sleep 30
# (Note that, by default, non-admins might not have your homeserver's permission to create communities.)
if [ "$bot_is_synapse_admin" = true ]
then
ynh_psql_execute_as_root --database=$synapse_db_name --sql="UPDATE users SET admin = 1 WHERE name = ""$facebookbot"";"
#yunohost app action run $synapse_instance set_admin_user -a username=$facebookbot
fi
ynh_systemd_action --service_name=$app --action="restart"
#sleep 30
# # (Note that, by default, non-admins might not have your homeserver's permission to create communities.)
# if [ "$bot_is_synapse_admin" = true ]
# then
# ynh_psql_execute_as_root --database=$synapse_db_name --sql="UPDATE users SET admin = 1 WHERE name = ""$facebookbot"";"
# #yunohost app action run $synapse_instance set_admin_user -a username=$facebookbot
# fi
#ynh_systemd_action --service_name=$app --action="restart"
#=================================================
# END OF SCRIPT