Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.
Installing Ubiquiti UniFi Controller in a jail

Installing Ubiquiti UniFi Controller in a jail

gt2416

Member
Joined
Feb 4, 2018
Messages
193
You can make a simple sh script to update automatically
nano unifi5.sh

Paste this in there

pkg upgrade -y
service unifi restart

Make it executable:

chmod +x unifi5.sh

Add it to your crontab to run every week

crontab -e

Paste this line in

0 0 * * 0 sh /root/unifi5.sh
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,437
Because you're on the quarterly package repository by default. You need to do a pkg override to be on the latest repository.
 

przemor

Newbie
Joined
Nov 26, 2020
Messages
1
How to upgrade unifi controller from v5 to 6?
cd /usr/ports/net-mgmt/unifi5
service unifi stop
make uninstall
then install v6

will my data (logs, configs) stay in the new version?
 

colmconn

Member
Joined
Jul 28, 2015
Messages
173
How to upgrade unifi controller from v5 to 6?
cd /usr/ports/net-mgmt/unifi5
service unifi stop
make uninstall
then install v6

will my data (logs, configs) stay in the new version?
Yes, everything stays the same. You should make a snapshot of your jail before you upgrade so you can roll back easily if the upgrade doesn't’ go smoothly.
 
Top