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.
 
 

17 lines
454 B

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