2019-12-14 00:45:59 +01:00
|
|
|
[update_turnserver_ip]
|
|
|
|
name = "Update turnserver ip"
|
|
|
|
command = "/opt/yunohost/matrix-$YNH_APP_INSTANCE_NAME/Coturn_config_rotate.sh"
|
|
|
|
user = "root"
|
|
|
|
accepted_return_codes = [0]
|
|
|
|
description = "Update the ip in the turnserver config"
|
|
|
|
|
|
|
|
[open_turnserver_firewall_ports]
|
|
|
|
name = "Open ports for turnserver"
|
|
|
|
command = "yunohost firewall allow Both 49153:49193"
|
|
|
|
user = "root"
|
|
|
|
accepted_return_codes = [0]
|
|
|
|
description = "Open the ports range 49153:49193 with TCP and UDP to be able to use correctly the turnserver."
|
|
|
|
|
|
|
|
[close_turnserver_firewall_ports]
|
|
|
|
name = "Close ports for turnserver"
|
|
|
|
command = "yunohost firewall disallow Both 49153:49193"
|
|
|
|
user = "root"
|
|
|
|
accepted_return_codes = [0]
|
|
|
|
description = "Close the ports range 49153:49193 with TCP and UDP. (Undo \"Open ports for turnserver\" action)"
|
|
|
|
|
|
|
|
[set_admin_user]
|
|
|
|
name = "Set a user as admin"
|
2020-09-13 20:59:30 +02:00
|
|
|
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' ]]"
|
2019-12-14 00:45:59 +01:00
|
|
|
user = "root"
|
|
|
|
accepted_return_codes = [0]
|
2020-09-13 20:59:30 +02:00
|
|
|
description = "Set a synapse user as admin in the synapse postgreSQL database. It is mainly required to manage the community function."
|
2019-12-14 00:45:59 +01:00
|
|
|
|
|
|
|
[set_admin_user.arguments]
|
|
|
|
[set_admin_user.arguments.username]
|
|
|
|
type = "string"
|
|
|
|
ask = "username of the user to set as admin"
|
|
|
|
example = "bob"
|