[debian-edu-commits] debian-edu/pkg-team/ 01/01: debian/patches: Add 0011_evaluate-run-deploy-var.patch. Evaluate the RUN_DEPLOY env variable which allows disabling the ldap2bind CRON job.

Mike Gabriel sunweaver at debian.org
Mon Feb 15 13:35:23 UTC 2016


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

sunweaver pushed a commit to branch master
in repository ldap2zone.

commit ea9533ac2fee86bf958b8ae7bf3aee627aab4403
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Feb 15 14:20:37 2016 +0100

    debian/patches: Add 0011_evaluate-run-deploy-var.patch. Evaluate the RUN_DEPLOY env variable which allows disabling the ldap2bind CRON job.
---
 debian/patches/0011_evaluate-run-deploy-var.patch | 14 ++++++++++++++
 debian/patches/series                             |  1 +
 2 files changed, 15 insertions(+)

diff --git a/debian/patches/0011_evaluate-run-deploy-var.patch b/debian/patches/0011_evaluate-run-deploy-var.patch
new file mode 100644
index 0000000..d30915e
--- /dev/null
+++ b/debian/patches/0011_evaluate-run-deploy-var.patch
@@ -0,0 +1,14 @@
+--- a/ldap2bind
++++ b/ldap2bind
+@@ -2,6 +2,11 @@
+ 
+ [ -r /etc/default/ldap2zone ] && . /etc/default/ldap2zone
+ 
++if [ "$RUN_DEPLOY" != "false" ]; then
++        echo "RUN_DEPLOY is set to false, doing nothing..."
++        exit 0
++fi
++
+ case "$LDAP_URI" in 
+ ldap://*|ldaps://*|ldapi://*) ;;
+ '')
diff --git a/debian/patches/series b/debian/patches/series
index 6c575ef..3a57757 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@
 0008_unused-variables.patch
 0009_support-ldapi-uris.patch
 0010_cron-silent-unconfigured.patch
+0011_evaluate-run-deploy-var.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