command for adding admin user
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-07-06 17:02:49 +02:00
parent 2445d9f33a
commit d22a8257fb
4 changed files with 18 additions and 0 deletions

View File

@ -5,3 +5,12 @@ export LOG_CONFIG_VERSION=v2
export SHARED_SECRET_AUTH_VERSION=v1
export SIGNAL_BRIDGE_YAML_VERSION=v4
export TELEGRAM_BRIDGE_YAML_VERSION=v6
set_admin () {
admin=akadmin
if [ -n "$1" ]
then
admin=$1
fi
psql -U synapse -c "UPDATE users SET admin = 1 WHERE name = '@$admin:$DOMAIN'";
}