General: store command customization in handlers configuration. FreeBSD-specific: getent doesn't exist, just use /etc/password and awk --- handlers/pgsql.in.orig Wed Dec 5 00:05:41 2007 +++ handlers/pgsql.in Wed Dec 5 00:07:59 2007 @@ -7,6 +7,9 @@ getconf databases all getconf compress yes getconf vsname +getconf PGSQLDUMP /usr/bin/pg_dump +getconf PGSQLDUMPALL /usr/bin/pg_dumpall +getconf PGSQLUSER postgres localhost=`hostname` @@ -64,7 +67,7 @@ if [ $usevserver = yes ]; then pguid=`$VSERVER $vsname exec getent passwd $PGSQLUSER | @AWK@ -F: '{print $3}'` else - pguid=`getent passwd $PGSQLUSER | @AWK@ -F: '{print $3}'` + pguid=`@AWK@ -F: "/$PGSQLUSER/ "'{print $3}' < /etc/passwd` fi [ -n "$pguid" ] || \ fatal "No user called $PGSQLUSER`[ $usevserver = no ] || echo \" on vserver $vsname\"`."