[DRE-commits] [gitlab] 01/01: add comments
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue Nov 3 12:45:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit 1e885470d026158980c7c186da4043c34906784e
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Tue Nov 3 18:15:04 2015 +0530
add comments
---
debian/grantpriv.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/grantpriv.sh b/debian/grantpriv.sh
index fdd72cb..fac22a5 100755
--- a/debian/grantpriv.sh
+++ b/debian/grantpriv.sh
@@ -3,6 +3,8 @@
user=gitlab
dbname=gitlab_production
+# If gitlab user cannot access gitlab_production,
+# then it means the gitlab role does not exist
if ! su gitlab -s /bin/sh -c 'psql gitlab_production -c ""'
then
echo "Create $user user with create database privillege..."
@@ -11,6 +13,7 @@ then
}
fi
+# By default the gitlab_prodcution is not owned by gitlab user
echo "Make $user user owner of $dbname database..."
sudo -u postgres psql -c "ALTER DATABASE $dbname OWNER to $user;" || {
exit 1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git
More information about the Pkg-ruby-extras-commits
mailing list