X-Git-Url: https://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/4e60b389634568bcf4cc5009fa37bba3eb381482..940be80e3e40dbbbd84161e1e5ae3abf0b2eadf6:/debian/courier-authlib-postgresql.postinst?pf=hcoop diff --git a/debian/courier-authlib-postgresql.postinst b/debian/courier-authlib-postgresql.postinst index 5de5e6c..2684740 100644 --- a/debian/courier-authlib-postgresql.postinst +++ b/debian/courier-authlib-postgresql.postinst @@ -1,6 +1,6 @@ #! /bin/sh -e # -# Copyright 2001,2005 by Stefan Hornburg (Racke) +# Copyright 2001,2005,2009 by Stefan Hornburg (Racke) # # 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 @@ -21,8 +21,8 @@ if [ "$1" = "configure" ]; then if [ -z "$2" ]; then # initial install of authpostgresql, 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 fi fi