parent
9efb51be7a
commit
aaf8a30688
2 changed files with 17 additions and 0 deletions
@ -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 - sogo -c "/usr/sbin/sogo-tool remove $USER" > /dev/null 2>&1 |
||||||
|
|
Loading…
Reference in new issue