Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

16 lignes
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 }}'"