23 |
- |
1 |
#! /bin/sh
|
|
|
2 |
|
|
|
3 |
# Zarafa script that is executed whenever a new company is deleted from
|
|
|
4 |
# the external user source, such as an Active Directory tree or
|
|
|
5 |
# /etc/passwd.
|
|
|
6 |
|
|
|
7 |
# This script executes all scripts in /etc/zarafa/userscripts/deletecompany.d
|
|
|
8 |
# using find. The environment variable ZARAFA_COMPANY is set, but
|
|
|
9 |
# beware that this string can contain any characters, so take heed to
|
|
|
10 |
# correct quoting.
|
|
|
11 |
|
|
|
12 |
if [ -f /etc/sysconfig/zarafa ]; then
|
|
|
13 |
. /etc/sysconfig/zarafa
|
|
|
14 |
elif [ -f /etc/default/zarafa ]; then
|
|
|
15 |
. /etc/default/zarafa
|
|
|
16 |
fi
|
|
|
17 |
|
|
|
18 |
ZARAFA_COMPANY_SCRIPTS=/etc/zarafa/userscripts/deletecompany.d
|
|
|
19 |
. /etc/zarafa/userscripts/companies_common.sh
|