From eee5cfd8ab172dc56ba6cf3fc50ec53d4d20cb4f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 2 Apr 2017 11:11:23 -0600 Subject: [PATCH] Update install.sh --- freebsd/install.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/freebsd/install.sh b/freebsd/install.sh index b7f5f82..ddd21d2 100755 --- a/freebsd/install.sh +++ b/freebsd/install.sh @@ -8,16 +8,16 @@ cd "$(dirname "$0")" . ./resources/colors.sh . ./resources/environment.sh -# removes the cd img from the /etc/apt/sources.list file (not needed after base install) -#sed -i '/cdrom:/d' /etc/apt/sources.list - #Update to latest packages verbose "Update installed packages" pkg upgrade #Update the ports -portsnap fetch extract -#portsnap fetch update +if [ -d "/usr/ports" ]; then + portsnap fetch update +else + portsnap fetch extract +fi #PF - Packet Filter resources/pf.sh @@ -40,9 +40,6 @@ resources/switch.sh #Postgres resources/postgres.sh -#set the ip address -server_address=$(hostname -I) - #restart services service php-fpm restart service nginx restart