debian-mirror-gitlab/scripts/create_postgres_user.sh
2018-11-08 19:23:39 +05:30

6 lines
144 B
Bash

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