Przeglądaj źródła

Merge pull request #426 from bnounours/master

Fix bad network and bad path to postgres env in docker run
pull/432/head
Slavi Pantaleev 6 lat temu
committed by GitHub
rodzic
commit
edb77cf799
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 3 usunięć
  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 Wyświetl plik

@@ -13,7 +13,7 @@ docker run \
--rm \
--user=991:991 \
--cap-drop=ALL \
--env-file=/matrix/postgres/env-postgres-psql \
--network matrix \
--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 }}'"
psql -h matrix-postgres -c "UPDATE users set admin=$2 WHERE name like '@$1:{{ matrix_domain }}'"

Ładowanie…
Anuluj
Zapisz