|
|
@ -16,7 +16,7 @@ for (( ; ; )); do
|
|
|
|
rm "/config/logs/log-cleanup"
|
|
|
|
rm "/config/logs/log-cleanup"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
touch -d "8 hours ago" "/config/logs/log-cleanup"
|
|
|
|
touch -d "8 hours ago" "/config/logs/log-cleanup"
|
|
|
|
if find "/config/logs" -type f -iname "extended_script_run_*.txt" -not -newer "/config/extended/logs/log-cleanup" | read; then
|
|
|
|
if find "/config/logs" -type f -iname "extended_script_run_*.txt" -not -newer "/config/logs/log-cleanup" | read; then
|
|
|
|
find "/config/logs" -type f -iname "*.log" -not -newer "/config/logs/log-cleanup" -delete
|
|
|
|
find "/config/logs" -type f -iname "*.log" -not -newer "/config/logs/log-cleanup" -delete
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ -f "/config/logs/log-cleanup" ]; then
|
|
|
|
if [ -f "/config/logs/log-cleanup" ]; then
|
|
|
|