mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-03 14:37:44 +01:00
Fix permission issue in rsyslog container.
This commit fixes the permission issues introduced after migration to photon:2.0 base image. Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
parent
64d83101f5
commit
6f4f941854
@ -14,7 +14,7 @@ COPY ./make/photon/log/rsyslog_docker.conf /etc/rsyslog.d/
|
||||
RUN mv /etc/cron.daily/logrotate /etc/cron.hourly/logrotate
|
||||
|
||||
COPY ./make/photon/log/start.sh /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/start.sh && \
|
||||
RUN chmod +x /usr/local/bin/start.sh /etc/rsyslog.d/ && \
|
||||
chown -R 10000:10000 /etc/rsyslog.conf /etc/rsyslog.d/ /run
|
||||
|
||||
HEALTHCHECK CMD netstat -ltu|grep 10514
|
||||
|
@ -41,9 +41,9 @@ $RepeatedMsgReduction on
|
||||
#
|
||||
# Set the default permissions for all log files.
|
||||
#
|
||||
$FileOwner syslog
|
||||
$FileGroup adm
|
||||
$FileCreateMode 0640
|
||||
#$FileOwner syslog
|
||||
#$FileGroup adm
|
||||
$FileCreateMode 0644
|
||||
$DirCreateMode 0755
|
||||
$Umask 0022
|
||||
#$PrivDropToUser syslog
|
||||
|
Loading…
Reference in New Issue
Block a user