123456789101112131415161718192021 |
- #! /bin/sh
- # Script that is executed whenever a new company is created in the
- # external user source, such as an Active Directory tree or
- # /etc/passwd.
- # This script executes all scripts in @USERSCRIPTDIR@/createcompany.d
- # using find. The environment variable KOPANO_COMPANY is set, but
- # beware that this string can contain any characters, so take heed to
- # correct quoting.
- if [ -f @sysconfdir@/sysconfig/kopano ]; then
- . @sysconfdir@/sysconfig/kopano
- elif [ -f @sysconfdir@/default/kopano ]; then
- # Used on Debian in place of sysconfig
- . @sysconfdir@/default/kopano
- fi
- KOPANO_COMPANY_SCRIPTS=@USERSCRIPTDIR@/createcompany.d
- . @USERSCRIPTDIR@/companies_common.sh
|