Proxmox/misc/unifi-update.sh

33 lines
694 B
Bash
Raw Normal View History

2022-03-26 10:45:04 +01:00
#!/usr/bin/env bash
2022-10-30 02:04:45 +01:00
YW=$(echo "\033[33m")
BL=$(echo "\033[36m")
RD=$(echo "\033[01;31m")
2022-03-26 10:45:04 +01:00
CM='\xE2\x9C\x94\033'
2022-10-30 02:04:45 +01:00
GN=$(echo "\033[1;92m")
CL=$(echo "\033[m")
2022-03-26 10:45:04 +01:00
APP="UniFi Update"
while true; do
read -p "This will run ${APP}. Proceed(y/n)?" yn
case $yn in
2022-10-30 02:04:45 +01:00
[Yy]*) break ;;
[Nn]*) exit ;;
*) echo "Please answer yes or no." ;;
2022-03-26 10:45:04 +01:00
esac
done
clear
function header_info {
2022-10-30 02:04:45 +01:00
echo -e "${RD}
2022-03-26 10:45:04 +01:00
_ _ _ ______ _
| | | | (_) ____(_)
| | | |_ __ _| |__ _
| | | | _ \| | __| | |
| |__| | | | | | | | |
\____/|_| |_|_|_| |_|
UPDATE
${CL}"
}
header_info
sleep 3
wget -qL https://get.glennr.nl/unifi/update/unifi-update.sh && bash unifi-update.sh