mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-19 10:16:18 +00:00
Improve logging of cron jobs
This commit is contained in:
parent
6e2ce17cd6
commit
9409bfa6bf
4 changed files with 27 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue