From 87acc19e50a3c0f8ef36958b801da40bd4c39c6c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 20 May 2020 12:18:06 -0600 Subject: [PATCH] Improve portsnap --- freebsd/install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/freebsd/install.sh b/freebsd/install.sh index d1eb1c9..3c80b0a 100755 --- a/freebsd/install.sh +++ b/freebsd/install.sh @@ -14,8 +14,13 @@ pkg upgrade --yes #Update the ports if [ .$portsnap_enabled = .'true' ]; then - portsnap fetch extract - echo "/usr/ports added" + if [ -f /usr/ports/UPDATING]; then + portsnap fetch && portsnap update + echo "/usr/ports updated" + else + portsnap fetch extract + echo "/usr/ports added" + fi fi #PF - Packet Filter