unofficial-unifi / unifi-pfsense

A script that installs the UniFi Controller software on pfSense and other FreeBSD systems
BSD 2-Clause "Simplified" License
755 stars 245 forks source link

Fix Install Script with latest pfSense release. #329

Closed x676f64 closed 1 year ago

x676f64 commented 1 year ago

In pfSense 2.7.0-RELEASE (amd64), this script fails to execute due to the way the shell interprets pkg -N 2> /dev/null as pkg -N 2 > /dev/null. By adding -- we tell the shell that we're done adding parameters and values to pkg.