handle gitlab-shell log

This commit is contained in:
Praveen Arimbrathodiyil 2016-01-22 10:44:53 +05:30
parent 5f16cf6bd1
commit 7a159fb956
2 changed files with 5 additions and 2 deletions

View file

@ -5,4 +5,5 @@ 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
export gitlab-shell_root=/usr/share/gitlab-shell
export gitlab-shell_log=/var/log/gitlab-shell

4
debian/postinst vendored
View file

@ -38,7 +38,9 @@ case "$1" in
chown -R ${gitlab_user}: ${gitlab_home}
chown -R ${gitlab_user}: ${gitlab_data_dir}
chown -R ${gitlab_user}: /usr/share/gitlab-shell
mkdir -p ${gitlab-shell_log}
chown -R ${gitlab_user}: ${gitlab-shell_root}
chown -R ${gitlab_user}: ${gitlab-shell_log}
su ${gitlab_user} -s /bin/sh -c "mkdir -p -m 750 ${gitlab_home}/public/uploads"
su ${gitlab_user} -s /bin/sh -c 'git config --global core.autocrlf "input"'
cd ${gitlab_home}