diff --git a/debian/grantpriv.sh b/debian/grantpriv.sh index 0bd0e93ded..284bb530e0 100755 --- a/debian/grantpriv.sh +++ b/debian/grantpriv.sh @@ -8,14 +8,14 @@ dbname=gitlab_production if ! su gitlab -c 'psql gitlab_production -c ""' then echo "Create $user user with create database privillege..." - su postgres -c 'psql -c "CREATE USER $user CREATEDB;"' || { + su postgres -c "psql -c \"CREATE USER $user CREATEDB;\"" || { exit 1 } fi # By default the gitlab_prodcution is not owned by gitlab user echo "Make $user user owner of $dbname database..." -su postgres -c 'psql -c "ALTER DATABASE $dbname OWNER to $user;"' || { +su postgres -c "psql -c \"ALTER DATABASE $dbname OWNER to $user;\"" || { exit 1 }