don't override systemd override.conf

This commit is contained in:
Praveen Arimbrathodiyil 2017-04-20 11:47:34 +05:30
parent b3a957ee4c
commit 8f15e1d4c6

6
debian/postinst vendored
View file

@ -266,7 +266,11 @@ case "$1" in
for service in mailroom unicorn sidekiq workhorse; do for service in mailroom unicorn sidekiq workhorse; do
path=/etc/systemd/system/gitlab-${service}.service.d path=/etc/systemd/system/gitlab-${service}.service.d
mkdir -p $path 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 done
# Manage gitlab-shell's config.yml via ucf # Manage gitlab-shell's config.yml via ucf