move gitlab user's home to /var/lib
This commit is contained in:
parent
51780a5223
commit
acc8e90105
3 changed files with 16 additions and 7 deletions
15
debian/adduser.sh
vendored
15
debian/adduser.sh
vendored
|
@ -1,11 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
# add diaspora system user (requires adduser >= 3.34)
|
||||
# add gitlab user (requires adduser >= 3.34)
|
||||
# don't muck around with this unless you KNOW what you're doing
|
||||
user=gitlab
|
||||
|
||||
echo "Creating/updating $user user account..."
|
||||
adduser --home /usr/share/$user --gecos "$user user" --shell /bin/sh \
|
||||
--quiet --disabled-password $user || {
|
||||
echo "Proceeding with existing $user user..."
|
||||
# Take gitlab_user from envornment variable or use gitlab
|
||||
test -n "${gitlab_user}" || gitlab_user="gitlab"
|
||||
|
||||
# Create gitlab user with home in /var/lib
|
||||
echo "Creating/updating ${gitlab_user} user account..."
|
||||
adduser --home /var/lib/${gitlab_user} --gecos "${gitlab_user} user" --shell /bin/sh \
|
||||
--quiet --disabled-password ${gitlab_user} || {
|
||||
echo "Proceeding with existing ${gitlab_user} user..."
|
||||
}
|
||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
|||
gitlab (8.4.3+dfsg-9) UNRELEASED; urgency=medium
|
||||
|
||||
* Move gitlab user's home directory to /var/lib
|
||||
|
||||
-- Pirate Praveen <praveen@debian.org> Thu, 18 Feb 2016 13:02:01 +0530
|
||||
|
||||
gitlab (8.4.3+dfsg-8) unstable; urgency=medium
|
||||
|
||||
* Install tmpfiles.d/gitlab.conf and allow www-data user to read /run/gitlab
|
||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -20,7 +20,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter,
|
|||
rake,
|
||||
bundler,
|
||||
postgresql-client,
|
||||
adduser,
|
||||
adduser (>= 3.34~),
|
||||
bc,
|
||||
postgresql,
|
||||
redis-server (>= 2:2.8~),
|
||||
|
|
Loading…
Add table
Reference in a new issue