Update unifi-os.sh
This commit is contained in:
14
unifi-os.sh
14
unifi-os.sh
@@ -262,6 +262,7 @@ packages:
|
|||||||
- ca-certificates
|
- ca-certificates
|
||||||
- podman
|
- podman
|
||||||
- slirp4netns
|
- slirp4netns
|
||||||
|
- expect
|
||||||
|
|
||||||
locale: fr_FR.UTF-8
|
locale: fr_FR.UTF-8
|
||||||
|
|
||||||
@@ -314,10 +315,17 @@ runcmd:
|
|||||||
|
|
||||||
# --- UniFi OS Server (uosserver) ---
|
# --- UniFi OS Server (uosserver) ---
|
||||||
# Procédure officielle: installer podman+slirp4netns, télécharger l'installeur, chmod +x, exécuter, puis systemctl enable/start 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 && chmod +x uos-installer.bin'
|
||||||
- bash -lc 'set -e; cd /root/uos && ./uos-installer.bin'
|
- bash -lc 'set -e; cd /root/uos && expect <<'\''EOF'\''
|
||||||
- systemctl enable uosserver
|
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
|
- systemctl start uosserver
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user