1 2 3 4 5 6
#!/bin/bash psql -h postgres -U postgres postgres <<EOF CREATE USER gitlab; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO gitlab; EOF