Put checksum file in /tmp as suggested in code review

This commit is contained in:
Erik Wramner 2019-07-31 12:56:18 +02:00
parent b23a7ddc1c
commit 573609e011

View file

@ -6,11 +6,10 @@ log_date=$(date +"%Y-%m-%d %H:%M:%S ")
sleep 5 sleep 5
echo "${log_date} Start check-for-changes script." echo "${log_date} Start check-for-changes script."
# create work area outside mounted directory # create checksum file outside mounted directory
# the checksum file should be reused on subsequent runs, # the checksum file should be reused on subsequent runs,
# but only by this container, not by others using same mount # but only by this container, not by others
mkdir -p /tmp/docker-mailserver-work CHKSUM_FILE=/tmp/docker-mailserver-config-chksum
CHKSUM_FILE=/tmp/docker-mailserver-work/chksum
# change directory # change directory
cd /tmp/docker-mailserver cd /tmp/docker-mailserver