diff --git a/VERSION b/VERSION index 0d91a54..9e11b32 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.0 +0.3.1 diff --git a/setup_server.py b/setup_server.py index 40da406..2e98fae 100644 --- a/setup_server.py +++ b/setup_server.py @@ -455,10 +455,21 @@ extendedKeyUsage = serverAuth chown(LOGS_DIR) for svc in SERVICES: run(f"systemctl enable --now {svc}") + log(f"{svc} avviato") if Path("/etc/systemd/system/iride-updater.path").exists(): run("systemctl enable --now iride-updater.path") log("Aggiornamento dalla console attivo (iride-updater.path)") - log(f"{svc} avviato") + + # 11b. Scansione antivirus degli allegati (IRIDE B-265): lo stesso script usato + # sui server esistenti, eseguito a servizi avviati. Non blocca l'installazione: + # se fallisce o la RAM non basta, la scansione resta disattivata. + clam = APP_DIR / "scripts/enable_clamav.sh" + if clam.exists(): + log("── Scansione antivirus degli allegati (ClamAV) ──") + res = run(f"bash {clam} --yes", check=False) + log("Scansione antivirus attiva" if res.returncode == 0 else + "ATTENZIONE: scansione antivirus NON attivata (RAM insufficiente o firme non scaricate): " + f"rilanciare 'sudo bash {clam}' dopo l'installazione") # 12. Licenza in posizione finale log("── Copia licenza in posizione finale ──")