$OpenBSD: patch-installer_userscripts_users_common_sh,v 1.5 2011/11/17 15:14:37 ajacoutot Exp $
--- installer/userscripts/users_common.sh.orig	Wed Nov 16 23:01:36 2011
+++ installer/userscripts/users_common.sh	Thu Nov 17 13:59:31 2011
@@ -1,7 +1,7 @@
 # shell include script
 
 ZARAFA_LANG="${ZARAFA_USERSCRIPT_LOCALE:-${LC_MESSAGES:-en_US}}"
-PATH=/bin:/usr/local/bin:/usr/bin
+PATH=$PATH:${PREFIX}/bin
 export ZARAFA_LANG PATH
 
 if [ -z "${ZARAFA_USER_SCRIPTS}" ] ; then
@@ -22,4 +22,4 @@ if [ -z "${ZARAFA_USER}" -a -z "${ZARAFA_STOREGUID}" ]
     exit 1
 fi
 
-find ${ZARAFA_USER_SCRIPTS} -maxdepth 1 -type f -perm -u=x -not -name \*~ -not -name \#\* -not -name \*.rpm\* -not -name \*.bak -not -name \*.old -exec {} \;
+find ${ZARAFA_USER_SCRIPTS} -maxdepth 1 -type f -perm -u=x -and ! -name \*~ -and ! -name \#\* -exec {} \;
