Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

16 righe
471 B

  1. #!/bin/bash
  2. if [ $# -ne 2 ]; then
  3. echo "Usage: "$0" <username> <password_hash>"
  4. exit 1
  5. fi
  6. docker run \
  7. --rm \
  8. --user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
  9. --cap-drop=ALL \
  10. --env-file={{ matrix_postgres_base_path }}/env-postgres-psql \
  11. --network {{ matrix_docker_network }} \
  12. {{ matrix_postgres_docker_image_to_use }} \
  13. psql -h {{ matrix_postgres_connection_hostname }} -c "UPDATE users set password_hash='$2' WHERE name = '@$1:{{ matrix_domain }}'"