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:
1 |
systemctl stop unifi |
Take a backup of the current unifi folder:
1 |
cp -R /opt/UniFi/ /opt/UniFi_bak/ |
Download the new version:
1 |
cd ~ && wget http://dl.ubnt.com/unifi/5.4.11/UniFi.unix.zip |
Unzip the downloaded file into the correct directory:
1 |
unzip -q UniFi.unix.zip -d /opt |
Copy the old data back into the UniFi folder, this allows historical data to be kept:
1 |
cp -R /opt/UniFi_bak/data/ /opt/UniFi/data/ |
Restart the UniFi Controller service:
1 |
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!
1 comment on “Upgrade your Linux UniFi Controller in minutes!”
you are great man 😀
Thanks Great Work …