Improve logging of cron jobs

This commit is contained in:
myve 2025-12-18 09:42:20 +00:00
commit 9409bfa6bf
4 changed files with 27 additions and 40 deletions

View file

@ -25,7 +25,7 @@ RUN apt remove -y nano* exim*; \
&& apt dist-upgrade -y \
&& bash -c "echo \"postfix postfix/main_mailer_type string 'Internet Site'\" | debconf-set-selections" \
&& apt install -y \
busybox-syslogd rsync \
busybox busybox-syslogd rsync \
ca-certificates \
git wget bind9-host acl dbconfig-no-thanks at \
nginx \
@ -40,10 +40,15 @@ RUN apt remove -y nano* exim*; \
&& rm -r -f /var/lib/apt/lists \
# Create vmail user
&& adduser vmail --system --group --uid 600 --disabled-login --home /var/vmail/ --quiet \
# Create cron folders
&& mkdir -p /etc/periodic/{daily,weekly}/ /var/spool/cron/crontabs/ \
# Installer
&& /tmp/installer.sh \
&& rm /tmp/installer.sh
# Add crontab
ADD ubuntu/cron /var/spool/cron/crontabs/root
# Expose ports
EXPOSE 25
EXPOSE 80