Upgrade your Linux UniFi Controller in minutes!
Ubiquiti’s provide a Controller version for other distributions of linux but only display debian on their site, but if you’re running CentOS or another Linux distribution, you’ll have to use the generic controller package. The upgrade provess is so simple! (i have also written this script that makes it even quicker)
I previously explained how to install your own UniFi Controller on CentOS in this article. Once you have it up and running, it’s even easier to upgrade to a newer version. The process takes less than 3 minutes with these steps.
This upgrade was tested on version 5.3.11 to 5.4.11 but should be the same for all versions
UPDATE: I have also upgraded 5.4.11 to 5.5.11 with no issues
Stop the UniFi Controller service:
systemctl stop unifi
Take a backup of the current unifi folder:
cp -R /opt/UniFi/ /opt/UniFi_bak/
Download the new version:
cd ~ && wget http://dl.ubnt.com/unifi/5.4.11/UniFi.unix.zip
Unzip the downloaded file into the correct directory:
unzip -q UniFi.unix.zip -d /opt
Copy the old data back into the UniFi folder, this allows historical data to be kept:
cp -R /opt/UniFi_bak/data/ /opt/UniFi/data/
Restart the UniFi Controller service:
systemctl start unifi
Wait a little while for your controller to load back up, once completed you can login as normal and you should still have all your legacy data still visible.
thats it youre done, simple!