gitlab/scripts/create_postgres_user.sh
Matthias Fechner ccf58807d3 Fix the shebang line for bash.
Not all systems having bash in `/bin`.
Use ´/usr/bin/env` to search for bash in `PATH`.
2020-05-16 10:53:05 +02:00

7 lines
152 B
Bash

#!/usr/bin/env bash
psql -h postgres -U postgres postgres <<EOF
CREATE USER gitlab;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO gitlab;
EOF