Removes “.forceresurr” at the end, if present

This commit is contained in:
pezcurrel 2024-08-22 11:43:40 +02:00
parent 12ece5bf7d
commit 40ceb04d2e

View file

@ -55,6 +55,7 @@ else # il primo del mese usa un gracetime di 2 mesi
log "Eseguo crawler.php con un gracetime di 2 mesi"
logcmd "php crawler.php -g 2M" "${crlogfp}"
fi
[ -f "${forceresurrfp}" ] && rm "${forceresurrfp}"
logcmd "php mustool.php shuffle clean optimize" "${logfp}"
ofp="maintain/backups/${dbname}_backup-`date +%Y-%m-%d--%H.%M.%S`.sql"
logcmd "mysqldump --defaults-extra-file=${mycfgfp} --single-transaction -r ${ofp} ${dbname}" "${logfp}"