[routino] 01/03: Use which instead of path to test for invoke-rc.d.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri Jul 31 18:40:31 UTC 2015


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

sebastic pushed a commit to branch master
in repository routino.

commit abcda251c1a2226bd66bf651e7673994cdaed68d
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Jul 31 18:15:57 2015 +0200

    Use which instead of path to test for invoke-rc.d.
---
 debian/changelog            | 6 ++++++
 debian/routino-www.postinst | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c40e90b..2351c95 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+routino (2.7.3-3) UNRELEASED; urgency=medium
+
+  * Use which instead of path to test for invoke-rc.d.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Fri, 31 Jul 2015 18:03:32 +0200
+
 routino (2.7.3-2) unstable; urgency=medium
 
   * Set the date embedded in man pages to the changelog date for
diff --git a/debian/routino-www.postinst b/debian/routino-www.postinst
index ab15983..eef84a6 100644
--- a/debian/routino-www.postinst
+++ b/debian/routino-www.postinst
@@ -57,7 +57,7 @@ case "$1" in
 			# Redirection of 3 is needed because Debconf uses it and it might 
 			# be inherited by webserver. See bug #446324.
 					if [ -f /etc/init.d/$webserver ] ; then
-							if [ -x /usr/sbin/invoke-rc.d ]; then
+							if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
 									invoke-rc.d $webserver reload 3>/dev/null || true
 							else
 									/etc/init.d/$webserver reload 3>/dev/null || true

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/routino.git



More information about the Pkg-grass-devel mailing list