create system user

This commit is contained in:
Praveen Arimbrathodiyil 2016-08-13 17:10:33 +05:30
parent 5506fed6b5
commit 973653590e
2 changed files with 7 additions and 1 deletions

2
debian/adduser.sh vendored
View file

@ -8,7 +8,7 @@ test -n "${gitlab_user}" || gitlab_user="gitlab"
# Create gitlab user with home in /var/lib # Create gitlab user with home in /var/lib
echo "Creating/updating ${gitlab_user} user account..." echo "Creating/updating ${gitlab_user} user account..."
adduser --home /var/lib/${gitlab_user} --gecos "${gitlab_user} user" --shell /bin/sh \ adduser --system --home /var/lib/${gitlab_user} --gecos "${gitlab_user} user" --shell /bin/sh \
--quiet --disabled-password ${gitlab_user} || { --quiet --disabled-password ${gitlab_user} || {
echo "Proceeding with existing ${gitlab_user} user..." echo "Proceeding with existing ${gitlab_user} user..."
} }

6
debian/changelog vendored
View file

@ -1,3 +1,9 @@
gitlab (8.9.0+dfsg-9) UNRELEASED; urgency=medium
* Create gitlab user as system user (Closes: #834037)
-- Pirate Praveen <praveen@debian.org> Sat, 13 Aug 2016 17:09:52 +0530
gitlab (8.9.0+dfsg-8) unstable; urgency=medium gitlab (8.9.0+dfsg-8) unstable; urgency=medium
* Update ruby-unicorn-worker-killer dependency * Update ruby-unicorn-worker-killer dependency