Last active
March 15, 2022 17:58
-
-
Save Typiqally/55538a55e980484832426f24ca16d1a1 to your computer and use it in GitHub Desktop.
UniFi controller update script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
colour='\033[1;32m' | |
less='\033[0m' | |
read -p "Please enter a STABLE version or press enter for version 7.0.23: " version | |
if [[ -z "$version" ]]; then | |
version='7.0.23' | |
fi | |
echo -e "${colour}\n\nThe system will now upgrade all the software and firmware, as well as clean up old/unused packages.\n\n${less}" | |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y | |
echo -e "${colour}\n\nThe UniFi controller with version $version is downloading now.\n\n${less}" | |
wget http://dl.ui.com/unifi/$version/unifi_sysvinit_all.deb -O unifi_$version\_sysvinit_all.deb | |
echo -e "${colour}\n\nThe UniFi controller will be installed now.\n\n${less}" | |
sudo dpkg -i unifi_$version\_sysvinit_all.deb; sudo apt-get install -f -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment