0.3.1 - ClamAV di default #2

Merged
tecnotel merged 1 commits from setup-0.3.1-clamav into main 2026-10-01 14:19:14 +02:00
2 changed files with 13 additions and 2 deletions

View File

@ -1 +1 @@
0.3.0 0.3.1

View File

@ -455,10 +455,21 @@ extendedKeyUsage = serverAuth
chown(LOGS_DIR) chown(LOGS_DIR)
for svc in SERVICES: for svc in SERVICES:
run(f"systemctl enable --now {svc}") run(f"systemctl enable --now {svc}")
log(f"{svc} avviato")
if Path("/etc/systemd/system/iride-updater.path").exists(): if Path("/etc/systemd/system/iride-updater.path").exists():
run("systemctl enable --now iride-updater.path") run("systemctl enable --now iride-updater.path")
log("Aggiornamento dalla console attivo (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 # 12. Licenza in posizione finale
log("── Copia licenza in posizione finale ──") log("── Copia licenza in posizione finale ──")