eid-ops/eumd-test-common/opt/mdqp/pre.d/00-daily-clean

15 lines
211 B
Text
Raw Normal View History

#!/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