Subversion Repositories configs

Rev

Rev 23 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 - 1
# shell include script
2
 
3
ZARAFA_LANG="${ZARAFA_USERSCRIPT_LOCALE:-${LC_MESSAGES:-en_US}}"
4
PATH=/bin:/usr/local/bin:/usr/bin
5
export ZARAFA_LANG PATH
6
 
7
if [ -z "${ZARAFA_USER_SCRIPTS}" ] ; then
8
    exec >&2
9
    echo "Do not execute this script directly"
10
    exit 1
11
fi
12
 
13
if [ ! -d "${ZARAFA_USER_SCRIPTS}" ] ; then
14
    exec >&2
15
    echo "${ZARAFA_USER_SCRIPTS} does not exist or is not a directory"
16
    exit 1
17
fi
18
 
19
if [ -z "${ZARAFA_USER}" -a -z "${ZARAFA_STOREGUID}" ] ; then
20
    exec >&2
21
    echo "ZARAFA_USER and ZARAFA_STOREGUID is not set."
22
    exit 1
23
fi
24
 
59 - 25
# Find cannot cope with unreadable cwd
26
cd "$ZARAFA_USER_SCRIPTS"
27
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 {} \;