Imported Debian patch 0.63.0-6
[hcoop/debian/courier-authlib.git] / debian / courier-authlib-mysql.prerm
index 10a9ef2..b1e91c5 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/sh -e
 #
-# Copyright 2000,2005 by Stefan Hornburg <racke@linuxia.de>
+# Copyright 2000,2005,2009 by Stefan Hornburg <racke@linuxia.de>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,8 +18,8 @@
 # MA  02111-1307  USA.
 
 # we need to restart authdaemon
-if [ -x /usr/sbin/authdaemond ]; then
-       /usr/sbin/authdaemond restart
+if which authdaemond >/dev/null 2>&1; then
+       authdaemond restart
 fi
 
 #DEBHELPER#