Changeset 90530ec for debian/gnuboat-puppet.postinst
- Timestamp:
- Aug 9, 2017, 3:40:24 PM (9 years ago)
- Branches:
- debian/bullseye, debian/jessie
- Children:
- ba861c4
- Parents:
- 1bdb08d
- git-author:
- Joachim Langenbach <joachim.langenbach@…> (08/08/17 14:40:50)
- git-committer:
- Joachim Langenbach <joachim.langenbach@…> (08/09/17 15:40:24)
- File:
-
- 1 edited
-
debian/gnuboat-puppet.postinst (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
debian/gnuboat-puppet.postinst
r1bdb08d r90530ec 1 2 #!/bin/bash 1 #!/bin/sh 3 2 4 3 set -e 5 4 6 5 # Run puppet, if wanted by the user (in upgrade case) 7 if [ "$1" = configure" ]; then 8 if [ ! -z "$2"]; then 6 # Not possible, as this apt instance locks the database 7 # and therefore the puppet apt instance is hanging 8 #if [ "$1" = configure ]; then 9 # if [ ! -z $2 ]; then 9 10 # it's an upgrade 10 11 # Source debconf library. 11 . /usr/share/debconf/confmodule12 13 db_get gnuboat-puppet/runpuppetagent14 if [ "$RET" = "true" ]; then15 puppet apply --test --config /etc/puppet/gnuboat_puppet.conf --environment gnuboat /etc/puppet/environments/gnuboat/manifests/ || true16 fi17 18 fi19 fi 12 # . /usr/share/debconf/confmodule 13 # 14 # db_get gnuboat-puppet/runpuppetagent 15 # if [ "$RET" = "true" ]; then 16 # puppet apply --test --config /etc/puppet/gnuboat_puppet.conf --environment gnuboat /etc/puppet/environments/gnuboat/manifests/ || true 17 # fi 18 # fi 19 #fi 20 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/"' 20 21 21 22 #DEBHELPER#
Note:
See TracChangeset
for help on using the changeset viewer.
