A big THANKYOU for point me out correctly, @syntaxerrormmm
This is the updated version…
config set unifi service status enabled
config setprop unifi status enabled TCPPorts 8080,8443,8880,8843 UDPPorts 3748,10001 access green
mkdir -p /etc/e-smith/db/configuration/defaults/unifi
echo "service" > /etc/e-smith/db/configuration/defaults/unifi/type
echo "enabled" > /etc/e-smith/db/configuration/defaults/unifi/status
signal-event runlevel-adjust
signal-event firewall-adjust
The howto you has more than 2 years, but the ports are the same.
This part
config set unifi service status enabled
config setprop unifi status enabled TCPPorts 8080,8443,8880,8843 UDPPorts 3748,10001 access green
helped me to have a “network service” only for UniFi. The procedure used by the howto helps to have separated services for mongodb, but the (wonderful) script of Steve Jenkins has only a little issue: has to be changed every time the server changes it’s hostname/fdqn. I’m wondering there could be a way to get from props of the database the hostname…
Full list of commands:
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
yum install unifi
systemctl enable unifi
systemctl start unifi
config set unifi service status enabled
config setprop unifi status enabled TCPPorts 8080,8443,8880,8843 UDPPorts 3748,10001 access green
mkdir -p /etc/e-smith/db/configuration/defaults/unifi
echo "service" > /etc/e-smith/db/configuration/defaults/unifi/type
echo "enabled" > /etc/e-smith/db/configuration/defaults/unifi/status
signal-event runlevel-adjust
signal-event firewall-adjust
Feel free to test and verify if there’s something wrong in what i did. Also, this use the 5.9.29 (october '18), which is not the latest 5.10.17 i used during last week for setup 4 access points.