We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 066e020 + 0cc77dd commit b6e60d4Copy full SHA for b6e60d4
freebsd.sh
@@ -1,15 +1,11 @@
1
#!/usr/bin/env sh
2
3
-# This bootstraps Puppet on FreeBSD
4
-
5
-have_pkg=`grep -sc '^WITH_PKGNG' /etc/make.conf`
+set -e
6
+# This bootstraps Puppet on FreeBSD
7
echo "Installing Puppet & dependencies..."
8
-if [ "$have_pkg" = 1 ]
9
-then
10
- export ASSUME_ALWAYS_YES=yes
11
- pkg install sysutils/puppet
12
- unset ASSUME_ALWAYS_YES
+if [ `sysctl -n kern.osreldate` -ge '901000' ] && pkg -N 2> /dev/null ; then
+ pkg install -y "sysutils/puppet4"
13
else
14
pkg_add -r puppet
15
fi
0 commit comments