mirror of
https://github.com/YunoHost-Apps/mautrix_facebook_ynh.git
synced 2024-09-03 19:36:33 +02:00
Fix psql call
This commit is contained in:
parent
8b40576022
commit
e9a9e76c4d
3 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ 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 = ""$botname"";"
|
||||
ynh_psql_execute_as_root --database=$synapse_db_name --sql="UPDATE users SET admin = 1 WHERE name = \"$botname\";"
|
||||
# #yunohost app action run $synapse_instance set_admin_user -a username=$facebookbot
|
||||
# fi
|
||||
ynh_systemd_action --service_name="$app" --action="restart"
|
||||
|
|
|
@ -82,7 +82,7 @@ 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 = ""$botname"";"
|
||||
ynh_psql_execute_as_root --database=$synapse_db_name --sql="UPDATE users SET admin = 1 WHERE name = \"$botname\";"
|
||||
# #yunohost app action run $synapse_instance set_admin_user -a username=$facebookbot
|
||||
# fi
|
||||
ynh_systemd_action --service_name="$app" --action="restart"
|
||||
|
|
|
@ -105,7 +105,7 @@ 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 = ""$botname"";"
|
||||
ynh_psql_execute_as_root --database=$synapse_db_name --sql="UPDATE users SET admin = 1 WHERE name = \"$botname\";"
|
||||
# #yunohost app action run $synapse_instance set_admin_user -a username=$facebookbot
|
||||
# fi
|
||||
ynh_systemd_action --service_name="$app" --action="restart"
|
||||
|
|
Loading…
Add table
Reference in a new issue