eid-ops/eumd-test-common/opt/mdqp/pre.d/00-daily-clean
2025-01-17 15:55:02 +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