Compare commits

...

2 Commits

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)
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 ──")