[Pkg-nagios-changes] [icinga] 04/07: Check for existance of resources.cfg before setting permissions.
Alexander Wirt
formorer at debian.org
Thu Aug 7 12:34:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
formorer pushed a commit to branch ubuntu-lucid
in repository icinga.
commit 677ebfd1b035637346765af40b66274f16452eff
Author: Alexander Wirt <formorer at debian.org>
Date: Thu Aug 7 11:45:33 2014 +0200
Check for existance of resources.cfg before setting permissions.
Closes: #757103
---
debian/icinga-common.postinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/icinga-common.postinst b/debian/icinga-common.postinst
index 61c6026..c94d045 100644
--- a/debian/icinga-common.postinst
+++ b/debian/icinga-common.postinst
@@ -39,7 +39,7 @@ case "$1" in
# explicitly set permissions on some files that are dependent
# on the uid/gid of the nagios user, which is dynamically created.
- setperm root nagios 0640 $en/resource.cfg
+ [ -f "$en/resource.cfg" ] && setperm root nagios 0640 $en/resource.cfg
setperm nagios adm 2751 /var/log/icinga
setperm nagios adm 2755 /var/log/icinga/archives
setperm nagios nagios 0750 /var/lib/icinga/spool
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/icinga.git
More information about the Pkg-nagios-changes
mailing list