Files
bsd-apps/unifi/unifi-install.sh

27 lines
499 B
Bash
Raw Normal View History

2024-09-15 15:07:17 -06:00
#!/bin/sh
# Install Unifi Controller
2024-09-29 16:45:57 -06:00
APP_NAME="Unifi"
2024-09-15 15:07:17 -06:00
UNIFI_VERSION="8"
# Check for Root Privileges
if ! [ $(id -u) = 0 ]; then
echo "This script must be run with root privileges"
exit 1
fi
# Install Packages
pkg install -y unifi${UNIFI_VERSION}
# Enable and Start Services
sysrc unifi_enable=YES
sysrc mondod_enable=yes
service mondod start
service unifi start
2024-09-29 16:45:57 -06:00
# Done
2024-09-15 15:07:17 -06:00
echo "---------------"
echo "Installation Complete."
2024-09-29 16:45:57 -06:00
echo "${APP_NAME} is running on port 8443"
2024-09-15 15:07:17 -06:00
echo "---------------"