23 |
- |
1 |
#! /bin/sh
|
|
|
2 |
|
|
|
3 |
# Zarafa script that is executed whenever a new user 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/deleteuser.d
|
|
|
8 |
# using find. The environment variable ZARAFA_USER is set, but beware
|
|
|
9 |
# that this string can contain any characters, so take heed to correct
|
|
|
10 |
# 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_USER_SCRIPTS=/etc/zarafa/userscripts/deleteuser.d
|
|
|
19 |
. /etc/zarafa/userscripts/users_common.sh
|