Renamed “donefp” var to “resurrfp”
This commit is contained in:
parent
3b7e818f22
commit
560db4d69d
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue