Update portsnap
This commit is contained in:
parent
84db5c1335
commit
f1631f9d7e
|
|
@ -15,10 +15,13 @@ pkg upgrade --yes
|
||||||
#Update the ports
|
#Update the ports
|
||||||
if [ .$portsnap_enabled = .'true' ]; then
|
if [ .$portsnap_enabled = .'true' ]; then
|
||||||
if [ -f /usr/ports/UPDATING ]; then
|
if [ -f /usr/ports/UPDATING ]; then
|
||||||
portsnap fetch && portsnap update
|
portsnap fetch update
|
||||||
echo "/usr/ports updated"
|
echo "/usr/ports updated"
|
||||||
else
|
else
|
||||||
pkg install --yes portsnap
|
pkg install --yes portsnap
|
||||||
|
mkdir -p /var/db/portsnap
|
||||||
|
chmod 755 /var/db/portsnap
|
||||||
|
chown root:wheel /var/db/portsnap
|
||||||
portsnap fetch extract
|
portsnap fetch extract
|
||||||
echo "/usr/ports added"
|
echo "/usr/ports added"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue