gitlab user needs shell argument

This commit is contained in:
Praveen Arimbrathodiyil 2015-11-03 18:04:55 +05:30
parent 17660bb6b1
commit 2614237393

2
debian/grantpriv.sh vendored
View file

@ -3,7 +3,7 @@
user=gitlab
dbname=gitlab_production
if ! su gitlab -c 'psql gitlab_production -c ""'
if ! su gitlab -s /bin/sh -c 'psql gitlab_production -c ""'
then
echo "Create $user user with create database privillege..."
sudo -u postgres psql -c "CREATE USER $user CREATEDB;" || {