(simatec) Fix rsyslog

This commit is contained in:
simatec 2024-06-02 01:40:43 +02:00
parent b5b900f815
commit 0bb376fb1a
2 changed files with 4 additions and 4 deletions

View file

@ -33,8 +33,7 @@ RUN apt-get update && \
ln -sf /etc/piler/piler-nginx.conf /etc/nginx/sites-enabled && \
echo "www-data ALL=NOPASSWD: /etc/init.d/rc.piler reload" > /etc/sudoers.d/piler && \
rm -f ${PACKAGE}_${TARGETARCH}.deb /etc/nginx/sites-enabled/default /etc/piler/piler.key /etc/piler/piler.pem /etc/piler/config-site.php && \
crontab -u $PILER_USER /usr/share/piler/piler.cron \
sed -i '/imklog/s/^/#/' /etc/rsyslog.conf
crontab -u $PILER_USER /usr/share/piler/piler.cron
VOLUME ["/etc/piler","/var/piler/store","/var/piler/manticore","/var/piler/imap","/var/piler/stat","/var/spool/cron/crontabs"]
@ -47,6 +46,8 @@ RUN apt clean && \
apt autoremove && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN sed -i '/imklog/ s/^/#/' /etc/rsyslog.conf
COPY start.sh /start.sh
# chmod start.sh

View file

@ -190,9 +190,8 @@ start_services() {
service cron start
service php8.3-fpm start
service nginx start
#rsyslogd
rm -f /run/rsyslogd.pid
service rsyslog start
rsyslogd
}