#! /bin/sh -e
#
-# Copyright 2001,2005 by Stefan Hornburg (Racke) <racke@linuxia.de>
+# Copyright 2001,2005,2009 by Stefan Hornburg (Racke) <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
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