Installing Ubiquiti UniFi Controller in a jail

Installing Ubiquiti UniFi Controller in a jail

gt2416

Patron
Joined
Feb 4, 2018
Messages
262
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,975
Because you're on the quarterly package repository by default. You need to do a pkg override to be on the latest repository.
 

tadeus

Dabbler
Joined
Aug 29, 2019
Messages
29
smiley_emoticons_kinggrin_anbeten.gif
 

przemor

Cadet
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

Contributor
Joined
Jul 28, 2015
Messages
174
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.
 

msbxa

Contributor
Joined
Sep 21, 2014
Messages
151
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.

and don’t forget unifi config backup first
 
Top