handle gitlab-shell log
This commit is contained in:
parent
5f16cf6bd1
commit
7a159fb956
2 changed files with 5 additions and 2 deletions
3
debian/conf/gitlab-debian.conf
vendored
3
debian/conf/gitlab-debian.conf
vendored
|
@ -5,4 +5,5 @@ 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
|
||||||
|
export gitlab-shell_root=/usr/share/gitlab-shell
|
||||||
|
export gitlab-shell_log=/var/log/gitlab-shell
|
||||||
|
|
4
debian/postinst
vendored
4
debian/postinst
vendored
|
@ -38,7 +38,9 @@ case "$1" in
|
||||||
chown -R ${gitlab_user}: ${gitlab_home}
|
chown -R ${gitlab_user}: ${gitlab_home}
|
||||||
chown -R ${gitlab_user}: ${gitlab_data_dir}
|
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 "mkdir -p -m 750 ${gitlab_home}/public/uploads"
|
||||||
su ${gitlab_user} -s /bin/sh -c 'git config --global core.autocrlf "input"'
|
su ${gitlab_user} -s /bin/sh -c 'git config --global core.autocrlf "input"'
|
||||||
cd ${gitlab_home}
|
cd ${gitlab_home}
|
||||||
|
|
Loading…
Reference in a new issue