[Pkg-nagios-changes] [pkg-nsca-ng] 01/04: Fix postinst

Alexander Wirt formorer at debian.org
Fri Oct 17 12:47:26 UTC 2014


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

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

commit 681226d7acb8d9e1c82ec89eb07863e31f6864aa
Author: Alexander Wirt <formorer at debian.org>
Date:   Sun Mar 17 17:32:20 2013 +0100

    Fix postinst
---
 debian/nsca-ng-server.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/nsca-ng-server.postinst b/debian/nsca-ng-server.postinst
index 2dcb5e9..dc4bbd5 100644
--- a/debian/nsca-ng-server.postinst
+++ b/debian/nsca-ng-server.postinst
@@ -26,7 +26,7 @@ case "$1" in
         # explicitly set some permissions
         setperm root root 0600 /etc/nsca-ng/nsca-ng.cfg
 
-        test -d /var/run/nsca-ng
+        test -d /var/run/nsca-ng || mkdir -p /var/run/nsca-ng
         setperm nagios nagios 0700 /var/run/nsca-ng
 
     ;;

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



More information about the Pkg-nagios-changes mailing list