$OpenBSD: patch-installer_userscripts_groups_common_sh,v 1.3 2009/12/16 18:39:11 ajacoutot Exp $
--- installer/userscripts/groups_common.sh.orig	Tue Dec 15 16:07:54 2009
+++ installer/userscripts/groups_common.sh	Wed Dec 16 18:33:53 2009
@@ -1,7 +1,7 @@
 # shell include script
 
 ZARAFA_LANG="--lang ${LC_MESSAGES:-en_EN}"
-PATH=/bin:/usr/local/bin:/usr/bin
+PATH=$PATH:${PREFIX}/bin
 
 if [ -z "${ZARAFA_GROUP_SCRIPTS}" ] ; then
     exec >&2
@@ -21,4 +21,4 @@ if [ -z "${ZARAFA_GROUP}" -a -z "${ZARAFA_GROUPID}" ] 
     exit 1
 fi
 
-find ${ZARAFA_GROUP_SCRIPTS} -maxdepth 1 -type f -perm -u=x -not -name \*~ -not -name \#\* -not -name \*.rpm\* -not -name \*.bak -not -name \*.old -exec {} \;
+find ${ZARAFA_GROUP_SCRIPTS} -maxdepth 1 -type f -perm -u=x -and ! -name \*~ -and ! -name \#\* -exec {} \;
