debian-mirror-gitlab/scripts/create_postgres_user.sh
2020-05-25 16:23:42 +05:30

6 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