eid-ops/md1.komreg.net/overlay/opt/mdqp/pre.d/00-daily-clean
2023-11-01 10:14:45 +01:00

14 lines
211 B
Bash
Executable file

#!/usr/bin/env bash
set -e
sync_file="/opt/mdqp/work/full_sync"
if [ -f ${sync_file} ]; then
if [ "$(date -r ${sync_file} +%Y-%m-%d)" != "$(date +%Y-%m-%d)" ]; then
rm "${sync_file}"
fi
fi