[sendmail] - updated sendmail.nm-dispatcher script to handle VPN connections (#577540)

Jaroslav Škarvada jskarvad at fedoraproject.org
Wed Aug 25 11:55:03 UTC 2010


commit c091b66100518e22b0f6d95c06bc8e59bf7ef1f3
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date:   Wed Aug 25 13:54:58 2010 +0200

    - updated sendmail.nm-dispatcher script to handle VPN connections (#577540)

 sendmail.nm-dispatcher |    8 +++++---
 sendmail.spec          |    5 ++++-
 2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/sendmail.nm-dispatcher b/sendmail.nm-dispatcher
index 5d30871..75dceb9 100644
--- a/sendmail.nm-dispatcher
+++ b/sendmail.nm-dispatcher
@@ -1,5 +1,7 @@
 #!/bin/sh
 
-if [ "$2" = "up" ] || [ "$2" = "down" ]; then
-	/sbin/service sendmail reload || :
-fi
+case "$2" in
+	up|down|vpn-up|vpn-down)
+		/sbin/service sendmail reload || :
+		;;
+esac
diff --git a/sendmail.spec b/sendmail.spec
index d6833b2..56b7389 100644
--- a/sendmail.spec
+++ b/sendmail.spec
@@ -14,7 +14,7 @@
 Summary: A widely used Mail Transport Agent (MTA)
 Name: sendmail
 Version: 8.14.4
-Release: 11%{?dist}
+Release: 12%{?dist}
 License: Sendmail
 Group: System Environment/Daemons
 URL: http://www.sendmail.org/
@@ -641,6 +641,9 @@ exit 0
 
 
 %changelog
+* Wed Aug 25 2010 Jaroslav Škarvada <jskarvad at redhat.com> - 8.14.4-12
+- updated sendmail.nm-dispatcher script to handle VPN connections (#577540)
+
 * Tue Aug 17 2010 Jaroslav Škarvada <jskarvad at redhat.com> - 8.14.4-11
 - README.libmilter moved to milter subpackage
 - updated description of doc subpackage


More information about the scm-commits mailing list