[DRE-commits] [gitlab] 01/05: don't override systemd 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 8f15e1d4c617367e55c8359e04dda872ea9ee646
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Apr 20 11:47:34 2017 +0530
don't override systemd override.conf
---
debian/postinst | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/debian/postinst b/debian/postinst
index 9250129..7f00129 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -266,7 +266,11 @@ case "$1" in
for service in mailroom unicorn sidekiq workhorse; do
path=/etc/systemd/system/gitlab-${service}.service.d
mkdir -p $path
- printf "[Service]\nUser=${gitlab_user}\n" > $path/override.conf
+ if [ -e $path/override.conf ]; then
+ echo "$path/override.conf already exist"
+ else
+ printf "[Service]\nUser=${gitlab_user}\n" > $path/override.conf
+ fi
done
# Manage gitlab-shell's config.yml via ucf
--
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