debian/bullseye
debian/jessie
|
Last change
on this file since cd24d9d was 90530ec, checked in by Joachim Langenbach <joachim.langenbach@…>, 9 years ago |
|
Fixed gnuboat-puppet.postinst script
|
-
Property mode
set to
100644
|
|
File size:
749 bytes
|
| Rev | Line | |
|---|
| [90530ec] | 1 | #!/bin/sh
|
|---|
| [1bdb08d] | 2 |
|
|---|
| 3 | set -e
|
|---|
| 4 |
|
|---|
| 5 | # Run puppet, if wanted by the user (in upgrade case)
|
|---|
| [90530ec] | 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
|
|---|
| [1bdb08d] | 10 | # it's an upgrade
|
|---|
| 11 | # Source debconf library.
|
|---|
| [90530ec] | 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/"'
|
|---|
| [1bdb08d] | 21 |
|
|---|
| 22 | #DEBHELPER#
|
|---|
| 23 |
|
|---|
| 24 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.