Improve portsnap

This commit is contained in:
FusionPBX 2020-05-20 12:18:06 -06:00 committed by GitHub
parent d7dfa262ae
commit 87acc19e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -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