Skip to content

Commit

Permalink
* Sat Feb 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> - 1.3…
Browse files Browse the repository at this point in the history
…-12.sme

- Remove a sogo user when a SME Server user is removed
  • Loading branch information
stephdl committed Feb 21, 2015
1 parent ed4937c commit cac187a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions createlinks
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ for my $event (qw(pre-backup))
{
event_link("sogo-backup", $event, "80");
}
event_link("sogo-delete-user", "user-delete", "10");

panel_link("sogo", "manager");
16 changes: 16 additions & 0 deletions root/etc/e-smith/events/actions/sogo-delete-user
Original file line number Diff line number Diff line change
@@ -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

5 changes: 4 additions & 1 deletion smeserver-sogo.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Name: smeserver-sogo
Version: 1.3
Release: 11%{?dist}
Release: 12%{?dist}
Summary: SME Server SOGo Groupware

Group: Networking/Daemons
Expand Down Expand Up @@ -89,6 +89,9 @@ fi


%changelog
* Sat Feb 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> - 1.3-12.sme
- Remove a sogo user when a SME Server user is removed

* Sat Feb 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> - 1.3-11.sme
- Fix the qpsmtpd fix_headers_case plugin

Expand Down

0 comments on commit cac187a

Please sign in to comment.