update gitlab user in override.conf
This commit is contained in:
parent
c60a09eae5
commit
eb28b21c7e
1 changed files with 3 additions and 1 deletions
4
debian/postinst
vendored
4
debian/postinst
vendored
|
@ -267,7 +267,9 @@ case "$1" in
|
||||||
path=/etc/systemd/system/gitlab-${service}.service.d
|
path=/etc/systemd/system/gitlab-${service}.service.d
|
||||||
mkdir -p $path
|
mkdir -p $path
|
||||||
if [ -e $path/override.conf ]; then
|
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
|
else
|
||||||
printf "[Service]\nUser=${gitlab_user}\n" > $path/override.conf
|
printf "[Service]\nUser=${gitlab_user}\n" > $path/override.conf
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue