From 0f4ec66364db8b2105338f967a29c680f5e9c701 Mon Sep 17 00:00:00 2001 From: Christophe JEANNEROT Date: Sat, 21 Feb 2026 19:52:34 +0100 Subject: [PATCH] Update unifi-os.sh --- unifi-os.sh | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/unifi-os.sh b/unifi-os.sh index d0226d5..019826d 100644 --- a/unifi-os.sh +++ b/unifi-os.sh @@ -324,22 +324,19 @@ runcmd: - systemctl enable qemu-guest-agent || true - systemctl start qemu-guest-agent || true -# --- UniFi OS Server (uosserver) --- -# Procédure officielle: installer podman+slirp4netns, télécharger l'installeur, -# chmod +x, exécuter, puis systemctl enable/start uosserver. + # --- UniFi OS Server (uosserver) --- + - bash -lc 'set -e; mkdir -p /root/uos && cd /root/uos && curl -fL -o uos-installer.bin "https://fw-download.ubnt.com/data/unifi-os-server/1856-linux-x64-5.0.6-33f4990f-6c68-4e72-9d9c-477496c22450.6-x64"' -- bash -lc 'set -e; mkdir -p /root/uos && cd /root/uos && curl -fL -o uos-installer.bin "https://fw-download.ubnt.com/data/unifi-os-server/1856-linux-x64-5.0.6-33f4990f-6c68-4e72-9d9c-477496c22450.6-x64"' + # droits d'exécution + - bash -lc 'chmod +x /root/uos/uos-installer.bin /root/uos/install.exp' -# Ajout des droits d'exécution -- bash -lc 'set -e; chmod +x /root/uos/uos-installer.bin /root/uos/install.exp' + # lancement install + - bash -lc 'cd /root/uos && expect /root/uos/install.exp | tee /root/uos/uos-install.log || true' -# Lancement via expect -- bash -lc 'set -e; cd /root/uos && expect /root/uos/install.exp | tee /root/uos/uos-install.log || true' - -# Activation et démarrage du service -- systemctl enable --now uosserver || true -- systemctl status uosserver --no-pager -l || true -- systemctl start uosserver + # service + - systemctl enable --now uosserver || true + - systemctl status uosserver --no-pager -l || true + - systemctl start uosserver EOF # Attach snippet to VM (requires 'local' storage with Snippets enabled)