We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6e60d4 + dff4cde commit d3949b1Copy full SHA for d3949b1
freebsd.sh
@@ -4,7 +4,11 @@ set -e
4
5
# This bootstraps Puppet on FreeBSD
6
echo "Installing Puppet & dependencies..."
7
-if [ `sysctl -n kern.osreldate` -ge '901000' ] && pkg -N 2> /dev/null ; then
+# See manpage of pkg(8)
8
+# https://www.freebsd.org/cgi/man.cgi?query=pkg&apropos=0&sektion=8
9
+if TMPDIR=/dev/null ASSUME_ALWAYS_YES=1 \
10
+ PACKAGESITE=file:///nonexistent \
11
+ pkg info -x 'pkg(-devel)?$' >/dev/null 2>&1; then
12
pkg install -y "sysutils/puppet4"
13
else
14
pkg_add -r puppet
0 commit comments