[Pkg-nagios-changes] [pkg-icinga2] 01/04: Add is_fresh_install to icinga2-bin postinst

Alexander Wirt formorer at debian.org
Mon Dec 1 21:26:52 UTC 2014


This is an automated email from the git hooks/post-receive script.

formorer pushed a commit to branch master
in repository pkg-icinga2.

commit 1135583152f234633d86afa37992c913329d85aa
Author: Alexander Wirt <formorer at debian.org>
Date:   Mon Dec 1 20:29:16 2014 +0100

    Add is_fresh_install to icinga2-bin postinst
---
 debian/icinga2-bin.postinst | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/debian/icinga2-bin.postinst b/debian/icinga2-bin.postinst
index cb3d66d..52d78ae 100644
--- a/debian/icinga2-bin.postinst
+++ b/debian/icinga2-bin.postinst
@@ -3,6 +3,14 @@
 
 set -e
 
+is_fresh_install()
+{
+    if [ -z "$2" ] ; then
+        return 0
+    fi
+    return 1
+}
+
 enable_default_features() {
     FIX_VERSION="0.0.5+icingasnap201312070000"
     if is_fresh_install $@ \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-icinga2.git



More information about the Pkg-nagios-changes mailing list