#!/bin/sh

set -e

# Run puppet, if wanted by the user (in upgrade case)
# Not possible, as this apt instance locks the database
# and therefore the puppet apt instance is hanging
#if [ "$1" = configure ]; then
#	if [ ! -z $2 ]; then
		# it's an upgrade
		# Source debconf library.
#		. /usr/share/debconf/confmodule
#
#		db_get gnuboat-puppet/runpuppetagent
#		if [ "$RET" = "true" ]; then
#			puppet apply --test --config /etc/puppet/gnuboat_puppet.conf --environment gnuboat /etc/puppet/environments/gnuboat/manifests/ || true
#		fi
#	fi
#fi
echo 'To apply the GNUBoat config to your system run "puppet apply --test --config /etc/puppet/gnuboat_puppet.conf --environment gnuboat /etc/puppet/environments/gnuboat/manifests/"'

#DEBHELPER#

exit 0
