Ignore:
Timestamp:
Aug 9, 2017, 3:40:24 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
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)
Message:

Fixed gnuboat-puppet.postinst script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/gnuboat-puppet.postinst

    r1bdb08d r90530ec  
    1 
    2 #!/bin/bash
     1#!/bin/sh
    32
    43set -e
    54
    65# 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
    910                # it's an upgrade
    1011                # Source debconf library.
    11                 . /usr/share/debconf/confmodule
    12 
    13                 db_get gnuboat-puppet/runpuppetagent
    14                 if [ "$RET" = "true" ]; then
    15                         puppet apply --test --config /etc/puppet/gnuboat_puppet.conf --environment gnuboat /etc/puppet/environments/gnuboat/manifests/ || true
    16                 fi
    17                
    18         fi
    19 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
     20echo '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/"'
    2021
    2122#DEBHELPER#
Note: See TracChangeset for help on using the changeset viewer.