fix loop condition
This commit is contained in:
parent
710a48aa68
commit
6f4af34b27
1 changed files with 1 additions and 1 deletions
2
debian/grantpriv.sh
vendored
2
debian/grantpriv.sh
vendored
|
@ -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;" || {
|
||||||
|
|
Loading…
Reference in a new issue