X-Git-Url: https://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/c8ffd9086f0b8cab7764e7affc843fc4429c0242..2c58f61c7faca7723da35ffd7924af764108e9fd:/debian/courier-authlib-postgresql.postinst 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