From 68c0f73080c58d870ad3c3fc557d828c661b8a06 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 26 Mar 2022 05:45:04 -0400 Subject: [PATCH] Create unifi-update.sh --- misc/unifi-update.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 misc/unifi-update.sh diff --git a/misc/unifi-update.sh b/misc/unifi-update.sh new file mode 100644 index 00000000..a7a19aae --- /dev/null +++ b/misc/unifi-update.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash +YW=`echo "\033[33m"` +BL=`echo "\033[36m"` +RD=`echo "\033[01;31m"` +CM='\xE2\x9C\x94\033' +GN=`echo "\033[1;92m"` +CL=`echo "\033[m"` +APP="UniFi Update" +while true; do + read -p "This will run ${APP}. Proceed(y/n)?" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done +clear +function header_info { +echo -e "${RD} + _ _ _ ______ _ + | | | | (_) ____(_) + | | | |_ __ _| |__ _ + | | | | _ \| | __| | | + | |__| | | | | | | | | + \____/|_| |_|_|_| |_| + UPDATE +${CL}" +} + +header_info +sleep 3 +wget -qL https://get.glennr.nl/unifi/update/unifi-update.sh && bash unifi-update.sh +