Procházet zdrojové kódy

Fix hardcoded values in postgres script matrix-change-user-admin-status

pull/460/head
Chris van Dijk před 6 roky
rodič
revize
88c1fbf6aa
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. +3
    -3
      roles/matrix-postgres/templates/usr-local-bin/matrix-change-user-admin-status.j2

+ 3
- 3
roles/matrix-postgres/templates/usr-local-bin/matrix-change-user-admin-status.j2 Zobrazit soubor

@@ -11,9 +11,9 @@ fi
docker run \
-it \
--rm \
--user=991:991 \
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
--cap-drop=ALL \
--env-file={{ matrix_postgres_base_path }}/env-postgres-psql \
--network {{ matrix_docker_network }} \
postgres:12.1-alpine \
psql -h matrix-postgres -c "UPDATE users set admin=$2 WHERE name like '@$1:{{ matrix_domain }}'"
{{ matrix_postgres_docker_image_to_use }} \
psql -h {{ matrix_postgres_connection_hostname }} -c "UPDATE users set admin=$2 WHERE name like '@$1:{{ matrix_domain }}'"

Načítá se…
Zrušit
Uložit