Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
infra
docker
gitlab
Commits
0f280517
Commit
0f280517
authored
Dec 06, 2019
by
Carlo Landmeter
Browse files
logging: fix logrotate
parent
961b4da1
Changes
1
Hide whitespace changes
Inline
Side-by-side
gitlab/overlay/usr/local/bin/entrypoint.sh
View file @
0f280517
...
...
@@ -75,7 +75,6 @@ prepare_conf() {
link_config
"/etc/gitlab/ssh"
"/etc/ssh"
link_config
"/etc/gitlab/nginx"
"/etc/nginx"
link_config
"/etc/gitlab/gitlab-shell"
"/home/git/gitlab-shell"
link_config
"/etc/gitlab/logrotate/"
"/etc/logrotate.d"
}
rebuild_conf
()
{
...
...
@@ -137,6 +136,8 @@ prepare_dirs() {
/var/log/gitlab
\
/home/git/gitlab/builds
\
/home/git/gitlab/shared
# logrotate need to be owned by root
chown
root:root /etc/gitlab/logrotate/gitlab
# correct permission of tmp directory
chmod
1777 /tmp
}
...
...
@@ -185,7 +186,7 @@ backup() {
logrotate
()
{
echo
"Rotating log files.."
/usr/sbin/logrotate /etc/logrotate
.d
/gitlab
/usr/sbin/logrotate /etc/
gitlab/
logrotate/gitlab
}
start
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment