[DRE-commits] [gitlab] 04/05: update gitlab user in override.conf
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Thu Apr 20 06:54:07 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 eb28b21c7eddd26c237603a7e93f63304dab6dc4
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Apr 20 11:59:40 2017 +0530
update gitlab user in override.conf
---
debian/postinst | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/postinst b/debian/postinst
index 7f00129..256c748 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -267,7 +267,9 @@ case "$1" in
path=/etc/systemd/system/gitlab-${service}.service.d
mkdir -p $path
if [ -e $path/override.conf ]; then
- echo "$path/override.conf already exist"
+ echo "$path/override.conf already exist"
+ # Make sure only gitlab user is updated
+ sed -i "s/^ *User=.*/User=$gitlab_user/" $path/override.conf
else
printf "[Service]\nUser=${gitlab_user}\n" > $path/override.conf
fi
--
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