fix: don't break when logging in with keycloak
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-10-23 20:16:37 +02:00
parent 75d1303118
commit b9097c1f94
5 changed files with 23 additions and 6 deletions

View File

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