File: 11_be_silent_on_success_653053.dpatch

package info (click to toggle)
ldap2zone 0.1-7%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 148 kB
  • ctags: 20
  • sloc: sh: 394; ansic: 325; makefile: 58
file content (21 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh /usr/share/dpatch/dpatch-run
## 11_be_silent_on_success_653053.dpatch by Holger Levsen <holger@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Made script log using logger by a patch contributed by
## DP: Petter Reinholdtsen
## DP: modified to only do this on success for squeeze by Holger Levsen
## DP: see #653053

@DPATCH@


--- ldap2zone-0.2.orig/ldap2bind
+++ ldap2zone-0.2/ldap2bind
@@ -85,6 +85,6 @@
		printf "Reloading the zone '$domain' failed: $result\n" 1>&2
 	else
-		printf "Reloading the zone '$domain' was successful\n" 1>&2
+		logger -t ldap2bind "Reloading the zone '$domain' was successful\n"
 	fi
 done