File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN unzip rclone-current-linux-amd64.zip && mv rclone-*-linux-amd64/rclone /bin/
66
77FROM restic/restic:0.16.0
88
9- RUN apk add --update --no-cache heirloom-mailx fuse curl
9+ RUN apk add --update --no-cache curl mailx
1010
1111COPY --from=rclone /bin/rclone /bin/rclone
1212
@@ -54,8 +54,5 @@ COPY backup.sh /bin/backup
5454COPY check.sh /bin/check
5555COPY entry.sh /entry.sh
5656
57-
58- WORKDIR "/"
59-
6057ENTRYPOINT ["/entry.sh" ]
6158CMD ["tail" ,"-fn0" ,"/var/log/cron.log" ]
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if [ -n "${TEAMS_WEBHOOK_URL}" ]; then
7272fi
7373
7474if [ -n " ${MAILX_ARGS} " ]; then
75- sh -c " mailx -v -S sendwait ${MAILX_ARGS} < ${lastLogfile} > ${lastMailLogfile} 2>&1"
75+ sh -c " mail -v -S sendwait ${MAILX_ARGS} < ${lastLogfile} > ${lastMailLogfile} 2>&1"
7676 if [ $? == 0 ]; then
7777 echo " Mail notification successfully sent."
7878 else
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ if [ -n "${TEAMS_WEBHOOK_URL}" ]; then
6060fi
6161
6262if [ -n " ${MAILX_ARGS} " ]; then
63- sh -c " mailx -v -S sendwait ${MAILX_ARGS} < ${lastLogfile} > ${lastMailLogfile} 2>&1"
63+ sh -c " mail -v -S sendwait ${MAILX_ARGS} < ${lastLogfile} > ${lastMailLogfile} 2>&1"
6464 if [ $? == 0 ]; then
6565 echo " Mail notification successfully sent."
6666 else
You can’t perform that action at this time.
0 commit comments