14 lines
211 B
Bash
Executable file
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
|
|
|
|
|
|
|