From 40ceb04d2ebd1bacd1b0b879e9befc9b04004c18 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Thu, 22 Aug 2024 11:43:40 +0200 Subject: [PATCH] =?UTF-8?q?Removes=20=E2=80=9C.forceresurr=E2=80=9D=20at?= =?UTF-8?q?=20the=20end,=20if=20present?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/clitools/maintain/maintain.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/web/clitools/maintain/maintain.bash b/web/clitools/maintain/maintain.bash index 7baf9f8..8690e06 100755 --- a/web/clitools/maintain/maintain.bash +++ b/web/clitools/maintain/maintain.bash @@ -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}"