fix loop condition

This commit is contained in:
Praveen Arimbrathodiyil 2015-11-02 23:28:23 +05:30
parent 710a48aa68
commit 6f4af34b27

2
debian/grantpriv.sh vendored
View file

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