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:
parent
d70a44b9a6
commit
f14b1fecd1
1 changed files with 8 additions and 8 deletions
|
@ -274,14 +274,14 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||||
# Start a systemd service
|
# Start a systemd service
|
||||||
ynh_systemd_action --service_name=$app --action="start"
|
ynh_systemd_action --service_name=$app --action="start"
|
||||||
# Wait until the synapse user is created
|
# Wait until the synapse user is created
|
||||||
sleep 30
|
#sleep 30
|
||||||
# (Note that, by default, non-admins might not have your homeserver's permission to create communities.)
|
# # (Note that, by default, non-admins might not have your homeserver's permission to create communities.)
|
||||||
if [ "$bot_is_synapse_admin" = true ]
|
# if [ "$bot_is_synapse_admin" = true ]
|
||||||
then
|
# then
|
||||||
ynh_psql_execute_as_root --database=$synapse_db_name --sql="UPDATE users SET admin = 1 WHERE name = ""$facebookbot"";"
|
# 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
|
# #yunohost app action run $synapse_instance set_admin_user -a username=$facebookbot
|
||||||
fi
|
# fi
|
||||||
ynh_systemd_action --service_name=$app --action="restart"
|
#ynh_systemd_action --service_name=$app --action="restart"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue