Renamed “donefp” var to “resurrfp”

This commit is contained in:
pezcurrel 2023-12-29 10:01:16 +01:00
parent 3b7e818f22
commit 560db4d69d

View file

@ -2,7 +2,7 @@
trap "exit" INT
basedir=`dirname "$0"`
cd "$basedir/.."
donefp=".pcresurrectdone"
resurrfp=".pcresurrectdone"
cmdlogfp="peerscrawl.log"
logfp="pcloop.log"
resdom=26
@ -11,9 +11,9 @@ function log {
}
while true; do
dom=$((`date "+%d"`+0))
[ $dom -lt $resdom -a -f "$donefp" ] && rm "$donefp"
if [[ ($dom -ge $resdom ) && !(-f "$donefp") ]]; then # usa un gracetime di 1 anno
touch "$donefp"
[ $dom -lt $resdom -a -f "$resurrfp" ] && rm "$resurrfp"
if [[ ($dom -ge $resdom ) && !(-f "$resurrfp") ]]; then # usa un gracetime di 1 anno
touch "$resurrfp"
log "### Eseguo peerscrawl.php con un gracetime di 1 anno ###"
./peerscrawl.php -g 1y -e peerscrawl.exclude &> $cmdlogfp
else # use il gracetime di default