Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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