Update unifi-os.sh

This commit is contained in:
2026-02-21 19:52:34 +01:00
parent 5fd99cd900
commit 0f4ec66364

View File

@@ -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)