From f14b1fecd1a5849988c0467ed887d69ce0dd45b0 Mon Sep 17 00:00:00 2001 From: Gredin67 Date: Sat, 6 Feb 2021 00:48:13 +0100 Subject: [PATCH] Update install --- scripts/install | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index d8e6e28..8e9efd6 100755 --- a/scripts/install +++ b/scripts/install @@ -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