sysutils/firstboot-pkgs: Loop through the list installing one at a time to

handle missing pkgs in the repo.

Reviewed by:	allanjude
Approved by:	cperciva, bdrewery (implicit)
This commit is contained in:
Brad Davis 2017-01-30 17:48:06 +00:00
parent 2ebb2d2162
commit 1d3c973e87
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432859
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= firstboot-pkgs
PORTVERSION= 1.4
PORTVERSION= 1.5
CATEGORIES= sysutils
MASTER_SITES= # none
DISTFILES= # none

View File

@ -37,10 +37,10 @@ firstboot_pkgs_run()
fi
# Install requested packages, if any
if ! [ -z "$firstboot_pkgs_list" ]; then
env ASSUME_ALWAYS_YES=YES pkg install $firstboot_pkgs_list </dev/null |
for package in ${firstboot_pkgs_list}; do
env ASSUME_ALWAYS_YES=YES pkg install ${package} </dev/null |
cat
fi
done
# Count rc.d scripts again
nscriptsn=`ls /usr/local/etc/rc.d | wc -l`