gitlab user needs shell argument
This commit is contained in:
parent
17660bb6b1
commit
2614237393
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 -s /bin/sh -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…
Add table
Reference in a new issue