initial commit of file from CVS for smeserver-sogo on Sat Sep 7 16:42:51 AEST 2024
This commit is contained in:
16
root/etc/e-smith/events/actions/sogo-delete-user
Normal file
16
root/etc/e-smith/events/actions/sogo-delete-user
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
EVENT=$1
|
||||
USER=$2
|
||||
|
||||
if [ -z "$EVENT" ]; then
|
||||
echo "event name is missing"
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$USER" ]; then
|
||||
echo "user account is missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
su -l -s /bin/bash sogo -c "/usr/sbin/sogo-tool remove $USER" > /dev/null 2>&1
|
||||
|
Reference in New Issue
Block a user