1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Update README.md

The command will not work unless ran as sudo. I figured it out after attempts to set up a server.
This commit is contained in:
nomore1007 2024-02-20 16:29:08 -07:00 committed by GitHub
parent b0850e5e51
commit 65415454ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,7 +147,7 @@ Actually there are no functions in the client interface to set a user as admin.
The following command will grant admin privilege to the specified user:
```
su --command="psql matrix_synapse" postgres <<< "UPDATE users SET admin = 1 WHERE name = '@user_to_be_admin:domain.tld'"
sudo su --command="psql matrix_synapse" postgres <<< "UPDATE users SET admin = 1 WHERE name = '@user_to_be_admin:domain.tld'"
```
### Administration API