Compare commits
2 Commits
c2e55763ce
...
051ae901b4
| Author | SHA1 | Date |
|---|---|---|
|
|
051ae901b4 | |
|
|
5194b73eaf |
|
|
@ -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 ──")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue