Update portsnap

This commit is contained in:
FusionPBX 2024-08-24 10:32:41 -06:00 committed by GitHub
parent 84db5c1335
commit f1631f9d7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -15,10 +15,13 @@ pkg upgrade --yes
#Update the ports
if [ .$portsnap_enabled = .'true' ]; then
if [ -f /usr/ports/UPDATING ]; then
portsnap fetch && portsnap update
portsnap fetch update
echo "/usr/ports updated"
else
pkg install --yes portsnap
mkdir -p /var/db/portsnap
chmod 755 /var/db/portsnap
chown root:wheel /var/db/portsnap
portsnap fetch extract
echo "/usr/ports added"
fi