mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
install: store gitlab-shell logs at /var/log/gitlab/gitlab-shell/
This commit is contained in:
parent
81f033b0cd
commit
54f1cc0cd3
@ -36,7 +36,7 @@ redis:
|
||||
|
||||
# Log file.
|
||||
# Default is gitlab-shell.log in the root directory.
|
||||
# log_file: "/home/git/gitlab-shell/gitlab-shell.log"
|
||||
log_file: "/var/log/gitlab/gitlab-shell/gitlab-shell.log"
|
||||
|
||||
# Log level. INFO by default
|
||||
log_level: INFO
|
||||
|
||||
@ -273,6 +273,7 @@ sed -i 's,HostKey /etc/ssh/,HostKey '"${GITLAB_DATA_DIR}"'/ssh/,g' -i /etc/ssh/s
|
||||
|
||||
# populate /var/log/gitlab
|
||||
mkdir -m 0755 -p /var/log/gitlab/gitlab && chown -R git:git /var/log/gitlab/gitlab
|
||||
mkdir -m 0755 -p /var/log/gitlab/gitlab-shell && chown -R git:git /var/log/gitlab/gitlab-shell
|
||||
|
||||
cd ${GITLAB_INSTALL_DIR}
|
||||
|
||||
|
||||
@ -129,6 +129,19 @@ cat > /etc/logrotate.d/gitlab <<EOF
|
||||
}
|
||||
EOF
|
||||
|
||||
# configure gitlab-shell log rotation
|
||||
cat > /etc/logrotate.d/gitlab <<EOF
|
||||
/var/log/gitlab/gitlab-shell/*.log {
|
||||
weekly
|
||||
missingok
|
||||
rotate 52
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
copytruncate
|
||||
}
|
||||
EOF
|
||||
|
||||
# configure supervisord to start unicorn
|
||||
cat > /etc/supervisor/conf.d/unicorn.conf <<EOF
|
||||
[program:unicorn]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user