[DRE-commits] [gitlab] 03/09: don't set gitlab user in postinst

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Apr 21 09:45:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository gitlab.

commit 7fa2ea01ffb4f35d4cb4625c02a5f844c3d6df60
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Apr 21 13:15:30 2017 +0530

    don't set gitlab user in postinst
---
 debian/postinst | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/debian/postinst b/debian/postinst
index db7fb38..6881b10 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -65,11 +65,7 @@ cp ${gitlab_debian_defaults} ${gitlab_debian_defaults_copy}
 
 # Read gitlab_user from debconf db
 db_get gitlab/user
-gitlab_user=${RET:-gitlab} >/dev/null
-
-if ! grep gitlab_user ${gitlab_debian_conf_private}; then
-  echo "gitlab_user=${gitlab_user}" >> ${gitlab_debian_conf_private}
-fi
+gitlab_user=$RET >/dev/null
 
 # Create gitlab user
 . /usr/lib/gitlab/scripts/adduser.sh

-- 
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