From 5e75eca87acd7bb64aa73362c2deb3550fee8ac0 Mon Sep 17 00:00:00 2001 From: Alexander Wolf <30579729+alxwolf@users.noreply.github.com> Date: Tue, 24 Dec 2024 09:15:55 +0100 Subject: [PATCH] Update deploy.sh - FW 4.1 not supported See issue #68 Again changes made by UI for cert locations and configuration mechanism --- deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy.sh b/deploy.sh index df7e3c5..cd1854f 100644 --- a/deploy.sh +++ b/deploy.sh @@ -25,6 +25,12 @@ if [ $(echo ${FIRMWARE_VER} | sed 's#\..*$##g') -gt 1 ] exit 1 fi +if [ $(echo ${FIRMWARE_VER} | sed 's#\..1$##g') = "4.1" ] + then + echo "Unsupported firmware: ${FIRMWARE_VER}" + exit 1 +fi + case "${MODEL}" in "UniFi Dream Machine Pro"|"UniFi Dream Machine"|"UniFi Dream Router"|"UniFi Dream Machine SE") echo "${MODEL} running firmware ${FIRMWARE_VER} detected, installing ubios-cert in ${DATA_DIR}..."