From 2ea61a0e34a6f45fe4f66acc4ab12d3b3ad94be7 Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Sun, 13 Sep 2020 20:59:30 +0200 Subject: [PATCH] fix set_admin_user using @user_name:server_name user namer in the synapse postgre database is @user_name:server_name and not @user_name:domain --- actions.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions.toml b/actions.toml index 42932d4..6224bd9 100644 --- a/actions.toml +++ b/actions.toml @@ -21,10 +21,10 @@ description = "Close the ports range 49153:49193 with TCP and UDP. (Undo \"Open [set_admin_user] name = "Set a user as admin" -command = "[[ \"$(su --command=\"psql matrix_synapse\" postgres <<< \"UPDATE users SET admin = 1 WHERE name = '@$YNH_ACTION_USERNAME:$(yunohost app setting $YNH_APP_INSTANCE_NAME domain)'\")\" == 'UPDATE 1' ]]" +command = "[[ \"$(su --command=\"psql matrix_synapse\" postgres <<< \"UPDATE users SET admin = 1 WHERE name = '@$YNH_ACTION_USERNAME:$(yunohost app setting $YNH_APP_INSTANCE_NAME server_name)'\")\" == 'UPDATE 1' ]]" user = "root" accepted_return_codes = [0] -description = "Set a synapse user as admin in the synapse server. It probably usefull only to manage the community function." +description = "Set a synapse user as admin in the synapse postgreSQL database. It is mainly required to manage the community function." [set_admin_user.arguments] [set_admin_user.arguments.username]