create gitlab_data_dir
This commit is contained in:
parent
6cbbf28cc1
commit
3710d30ea2
2 changed files with 3 additions and 0 deletions
1
debian/gitlab-debian.conf
vendored
1
debian/gitlab-debian.conf
vendored
|
@ -1,6 +1,7 @@
|
|||
export gitlab_user=gitlab
|
||||
export gitlab_conf=/etc/gitlab.conf
|
||||
export gitlab_home=/usr/share/gitlab
|
||||
export gitlab_data_dir=/var/lib/gitlab
|
||||
export gitlab_scripts=/usr/lib/gitlab/scripts
|
||||
export gitlab_nginx_log=/var/log/gitlab
|
||||
export gitlab_ssl_path=/etc/gitlab/ssl
|
||||
|
|
2
debian/postinst
vendored
2
debian/postinst
vendored
|
@ -30,7 +30,9 @@ case "$1" in
|
|||
configure)
|
||||
. /etc/gitlab/gitlab-debian.conf
|
||||
. /usr/lib/gitlab/scripts/adduser.sh
|
||||
mkdir -p ${gitlab_data_dir}
|
||||
chown -R ${gitlab_user}: ${gitlab_home}
|
||||
chown -R ${gitlab_user}: ${gitlab_data_dir}
|
||||
cd ${gitlab_home}
|
||||
# Show debconf questions
|
||||
. /usr/share/debconf/confmodule
|
||||
|
|
Loading…
Reference in a new issue