create gitlab_data_dir

This commit is contained in:
Praveen Arimbrathodiyil 2015-11-03 17:54:13 +05:30
parent 6cbbf28cc1
commit 3710d30ea2
2 changed files with 3 additions and 0 deletions

View file

@ -1,6 +1,7 @@
export gitlab_user=gitlab export gitlab_user=gitlab
export gitlab_conf=/etc/gitlab.conf export gitlab_conf=/etc/gitlab.conf
export gitlab_home=/usr/share/gitlab export gitlab_home=/usr/share/gitlab
export gitlab_data_dir=/var/lib/gitlab
export gitlab_scripts=/usr/lib/gitlab/scripts export gitlab_scripts=/usr/lib/gitlab/scripts
export gitlab_nginx_log=/var/log/gitlab export gitlab_nginx_log=/var/log/gitlab
export gitlab_ssl_path=/etc/gitlab/ssl export gitlab_ssl_path=/etc/gitlab/ssl

2
debian/postinst vendored
View file

@ -30,7 +30,9 @@ case "$1" in
configure) configure)
. /etc/gitlab/gitlab-debian.conf . /etc/gitlab/gitlab-debian.conf
. /usr/lib/gitlab/scripts/adduser.sh . /usr/lib/gitlab/scripts/adduser.sh
mkdir -p ${gitlab_data_dir}
chown -R ${gitlab_user}: ${gitlab_home} chown -R ${gitlab_user}: ${gitlab_home}
chown -R ${gitlab_user}: ${gitlab_data_dir}
cd ${gitlab_home} cd ${gitlab_home}
# Show debconf questions # Show debconf questions
. /usr/share/debconf/confmodule . /usr/share/debconf/confmodule