Change process order, bug fix

pull/35/head
RandomNinjaAtk 2 years ago committed by GitHub
parent cdc793af5c
commit 808fbbcaf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,17 +11,17 @@ for (( ; ; )); do
chmod 777 "/config/logs"
chown abc:abc "/config/logs"
fi
bash /config/extended/scripts/download.sh 2>&1 | tee "/config/logs/extended_script_run_${i}_$(date +"%Y_%m_%d_%I_%M_%p").txt" > /proc/1/fd/1 2>/proc/1/fd/2
if [ -f "/config/extended/logs/log-cleanup" ]; then
rm "/config/extended/logs/log-cleanup"
fi
touch -d "8 hours ago" "/config/extended/logs/log-cleanup"
touch -d "24 hours ago" "/config/extended/logs/log-cleanup"
if find "/config/logs" -type f -iname "extended_script_run_*.txt" -not -newer "/config/extended/logs/log-cleanup" | read; then
find "/config/logs" -type f -iname "*.txt" -not -newer "/config/logs/log-cleanup" -delete
find "/config/logs" -type f -iname "*.txt" -not -newer "/config/extended/logs/log-cleanup" -delete
fi
if [ -f "/config/extended/logs/log-cleanup" ]; then
rm "/config/extended/logs/log-cleanup"
fi
bash /config/extended/scripts/download.sh 2>&1 | tee "/config/logs/extended_script_run_${i}_$(date +"%Y_%m_%d_%I_%M_%p").txt" > /proc/1/fd/1 2>/proc/1/fd/2
if [ -z "$scriptInterval" ]; then
scriptInterval="15m"
fi

Loading…
Cancel
Save