On first run after 0:0:0 of 26th of month do peerscrawl.php with a 2 months gracetime (it was 1 year, before)

This commit is contained in:
pezcurrel 2024-01-02 00:48:06 +01:00
parent 29919f0867
commit 6c29f1e24e

View file

@ -12,10 +12,10 @@ function log {
while true; do
dom=$((`date "+%d"`+0))
[ $dom -lt $resdom -a -f "$resurrfp" ] && rm "$resurrfp"
if [[ ($dom -ge $resdom ) && !(-f "$resurrfp") ]]; then # usa un gracetime di 1 anno
if [[ ($dom -ge $resdom ) && !(-f "$resurrfp") ]]; then # usa un gracetime di 2 mesi
touch "$resurrfp"
log "### Eseguo peerscrawl.php con un gracetime di 1 anno ###"
./peerscrawl.php -g 1y -e peerscrawl.exclude &> $cmdlogfp
log "### Eseguo peerscrawl.php con un gracetime di 2 mesi ###"
./peerscrawl.php -g 2M -e peerscrawl.exclude &> $cmdlogfp
else # use il gracetime di default
log "### Eseguo peerscrawl.php con il gracetime di default ###"
./peerscrawl.php -e peerscrawl.exclude &> $cmdlogfp