Update unifi-os.sh

This commit is contained in:
2026-02-21 18:52:44 +01:00
parent 251488ab87
commit 7cf0533fa9

View File

@@ -262,6 +262,7 @@ packages:
- ca-certificates
- podman
- slirp4netns
- expect
locale: fr_FR.UTF-8
@@ -314,10 +315,17 @@ runcmd:
# --- UniFi OS Server (uosserver) ---
# Procédure officielle: installer podman+slirp4netns, télécharger l'installeur, chmod +x, exécuter, puis systemctl enable/start uosserver.
- bash -lc 'set -e; mkdir -p /root/uos && cd /root/uos && curl -fL -o uos-installer.bin "${UOS_URL}"'
- 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; cd /root/uos && chmod +x uos-installer.bin'
- bash -lc 'set -e; cd /root/uos && ./uos-installer.bin'
- systemctl enable uosserver
- bash -lc 'set -e; cd /root/uos && expect <<'\''EOF'\''
set timeout -1
spawn ./uos-installer.bin
expect {
-re {Proceed\?\s*\(y/N\):} { send "y\r"; exp_continue }
eof
}
EOF'
- systemctl enable --now uosserver
- systemctl start uosserver
EOF