Most of these commands must be run as root, so either log in as root or use sudo.
Any commands starting with nano can be substituted with vi if nano is not installed.
Stop the UniFi SDN controller
systemctl stop unifi
Back up your current installation. Choose one of the following options.
- Take a snapshot of the entire VM (easiest to restore)
Save a copy of the latest auto backup file from the autobackup directory
Copy the entire data directory to another location or make an archive of it
Change directory to the temporary directory
Install the generic Linux version of the UniFi SDN controller
Make sure to read the release notes and ensure that your server meets the requirements, including Java and MongoDB versions!
- Find the latest version number from the UniFi download page
Download the ZIP file
Fill in [version] with the correct version number. ex. /unifi/5.11.50/UniFi.unix.zip
Unzip the contents
unzip -q UniFi.unix.zip -d /opt
You should be prompted to replace files
replace /opt/UniFi/bin/mongod? [y]es, [n]o, [A]ll, [N]one, [r]ename:
Enter A and press enter.
Set the correct owner for the new files
chown -R ubnt:ubnt /opt/UniFi
Start the service
systemctl start unifi
- Go to your controller's web address in a browser.
The address will be the FQDN or IP followed by the admin port, 8443.
- It is safe to bypass certificate warnings since the controller does not have publicly trusted certificates installed.
- That's it! Everything should be updated and working!