Skip to content

Commit b6e60d4

Browse files
authored
Merge pull request #52 from ptomulik/fix/freebsd
update freebsd.sh (freebsd 10.3, puppet4)
2 parents 066e020 + 0cc77dd commit b6e60d4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

freebsd.sh

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
#!/usr/bin/env sh
22

3-
# This bootstraps Puppet on FreeBSD
4-
5-
have_pkg=`grep -sc '^WITH_PKGNG' /etc/make.conf`
3+
set -e
64

5+
# This bootstraps Puppet on FreeBSD
76
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
7+
if [ `sysctl -n kern.osreldate` -ge '901000' ] && pkg -N 2> /dev/null ; then
8+
pkg install -y "sysutils/puppet4"
139
else
1410
pkg_add -r puppet
1511
fi

0 commit comments

Comments
 (0)