Browse Source

Update portsnap

FusionPBX 1 năm trước cách đây
mục cha
commit
f1631f9d7e
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      freebsd/install.sh

+ 4 - 1
freebsd/install.sh

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