Update package-release.sh

Use switch_source package or port instead of portsnap_enabled.
This commit is contained in:
FusionPBX 2020-11-15 19:16:51 -07:00 committed by GitHub
parent 4510c58a25
commit f1e071b0b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -16,11 +16,12 @@ cwd=$(pwd)
echo "Installing the FreeSWITCH package"
#install the package
if [ .$portsnap_enabled = .'true' ]; then
if [ .$switch_source = ."package" ]; then
pkg install --yes freeswitch
fi
if [ .$switch_source = ."port" ]; then
#dbatch uses the defaults alternative is make config-recursive
cd /usr/ports/net/freeswitch/ && make -DBATCH install clean
else
pkg install --yes freeswitch
fi
#set the original working directory