source: npl/mailserver/kopano_conf/root/etc/kopano/userscripts/users_common.sh

Last change on this file was a2d969e, checked in by Edwin Eefting <edwin@datux.nl>, 7 years ago

fixes

  • Property mode set to 100644
File size: 605 bytes
Line 
1# shell include script
2
3KOPANO_LANG="${KOPANO_USERSCRIPT_LOCALE:-${LC_MESSAGES:-C}}"
4PATH=/bin:/usr/local/bin:/usr/bin
5export KOPANO_LANG PATH
6
7if [ -z "${KOPANO_USER_SCRIPTS}" ] ; then
8    exec >&2
9    echo "Do not execute this script directly"
10    exit 1
11fi
12
13if [ ! -d "${KOPANO_USER_SCRIPTS}" ] ; then
14    exec >&2
15    echo "${KOPANO_USER_SCRIPTS} does not exist or is not a directory"
16    exit 1
17fi
18
19if [ -z "${KOPANO_USER}" -a -z "${KOPANO_STOREGUID}" ] ; then
20    exec >&2
21    echo "KOPANO_USER and KOPANO_STOREGUID is not set."
22    exit 1
23fi
24exec "$PKGLIBEXECDIR/kscriptrun" "$KOPANO_USER_SCRIPTS"
Note: See TracBrowser for help on using the repository browser.