[debian-edu-commits] debian-edu/pkg-team/ 01/01: Quiet down cron job when ldap2zone is unconfigured.
Petter Reinholdtsen
pere at moszumanska.debian.org
Mon Feb 15 13:20:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
pere pushed a commit to branch master
in repository ldap2zone.
commit fb9c20d2f4b969d53a3cba9cd72115c043e1997f
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Mon Feb 15 14:19:54 2016 +0100
Quiet down cron job when ldap2zone is unconfigured.
Closes: #806942
---
debian/patches/0010_cron-silent-unconfigured.patch | 20 ++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 21 insertions(+)
diff --git a/debian/patches/0010_cron-silent-unconfigured.patch b/debian/patches/0010_cron-silent-unconfigured.patch
new file mode 100644
index 0000000..37519bf
--- /dev/null
+++ b/debian/patches/0010_cron-silent-unconfigured.patch
@@ -0,0 +1,20 @@
+Author: Petter Reinholdtsen <pere at hungry.com>
+Date: Mon Feb 15 14:18:09 2016 +0200
+
+ Quiet down cron job when ldap2zone is unconfigured (Closes: #806942).
+
+Index: ldap2zone/ldap2bind
+===================================================================
+--- ldap2zone.orig/ldap2bind 2016-02-15 14:17:03.092965725 +0100
++++ ldap2zone/ldap2bind 2016-02-15 14:17:31.633097263 +0100
+@@ -4,6 +4,10 @@
+
+ case "$LDAP_URI" in
+ ldap://*|ldaps://*|ldapi://*) ;;
++'')
++ # No LDAP server set, no need trying to generate a zone file.
++ exit 0
++ ;;
+ *) LDAP_URI="ldap://${LDAP_URI}" ;;
+ esac
+
diff --git a/debian/patches/series b/debian/patches/series
index d61e51f..6c575ef 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
0007_hardening.patch
0008_unused-variables.patch
0009_support-ldapi-uris.patch
+0010_cron-silent-unconfigured.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/ldap2zone.git
More information about the debian-edu-commits
mailing list