From 143ef672423cdd6866a201a9bd64a0835eb606e9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 14 Jun 2017 23:21:08 -0700 Subject: [PATCH] Create install.sh --- freebsd/install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/freebsd/install.sh b/freebsd/install.sh index 1f862af..1b91f1d 100755 --- a/freebsd/install.sh +++ b/freebsd/install.sh @@ -13,10 +13,12 @@ verbose "Update installed packages" pkg upgrade --yes #Update the ports -if [ -d "/usr/ports" ]; then - portsnap fetch extract -else +if [ -e "/usr/ports" ]; then + echo "/usr/ports exists" portsnap fetch update +else + echo "/usr/ports not found"; + portsnap fetch extract fi #PF - Packet Filter