1 |
--- smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services.services2 2008-12-20 20:02:07.000000000 +1100 |
2 |
+++ smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services 2008-12-20 20:02:34.000000000 +1100 |
3 |
@@ -4,6 +4,6 @@ |
4 |
/etc/rc.d/init.d/zarafa-ical $1 |
5 |
/etc/rc.d/init.d/zarafa-licensed $1 |
6 |
/etc/rc.d/init.d/zarafa-monitor $1 |
7 |
-/etc/rc.d/init.d/zarafa-spooler $1 |
8 |
/etc/rc.d/init.d/zarafa-server $1 |
9 |
+/etc/rc.d/init.d/zarafa-spooler $1 |
10 |
|
11 |
--- smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-install.services2 2008-12-20 20:05:13.000000000 +1100 |
12 |
+++ smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-install 2008-12-20 20:07:17.000000000 +1100 |
13 |
@@ -3,6 +3,9 @@ |
14 |
/bin/echo "initialize-default-databases" |
15 |
/etc/e-smith/events/actions/initialize-default-databases |
16 |
|
17 |
+/bin/echo "set users to use zarafa" |
18 |
+/etc/e-smith/events/actions/qmail-update-user |
19 |
+ |
20 |
/bin/echo "reassign and disable sme gateway ports" |
21 |
/sbin/e-smith/config setprop pop3 TCPPort 8110 |
22 |
/sbin/e-smith/config setprop pop3s TCPPort 8995 |
23 |
--- smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services-stop.services 2008-12-20 18:24:21.000000000 +1100 |
24 |
+++ smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services-stop 2008-12-20 18:31:41.000000000 +1100 |
25 |
@@ -0,0 +1,8 @@ |
26 |
+#!/bin/sh |
27 |
+ |
28 |
+/etc/rc.d/init.d/zarafa-gateway stop |
29 |
+/etc/rc.d/init.d/zarafa-ical stop |
30 |
+/etc/rc.d/init.d/zarafa-licensed stop |
31 |
+/etc/rc.d/init.d/zarafa-monitor stop |
32 |
+/etc/rc.d/init.d/zarafa-spooler stop |
33 |
+/etc/rc.d/init.d/zarafa-server stop |
34 |
--- smeserver-zarafa-0.9.0/root/etc/e-smith/templates-user/.qmail-junkmail/00DeliverToZarafa.services 2008-12-20 19:12:26.000000000 +1100 |
35 |
+++ smeserver-zarafa-0.9.0/root/etc/e-smith/templates-user/.qmail-junkmail/00DeliverToZarafa 2008-12-20 19:13:43.000000000 +1100 |
36 |
@@ -1,6 +1,13 @@ |
37 |
{ |
38 |
- my $zarafa = $user->prop('zarafa') || 'enabled'; |
39 |
- return "| /usr/bin/zarafa-dagent -qj $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;" |
40 |
+ # vim: ft=perl: |
41 |
+ die "USERNAME not set." unless defined ($USERNAME); |
42 |
+ |
43 |
+ use esmith::AccountsDB; |
44 |
+ $adb = esmith::AccountsDB->open_ro or die "Couldn't open AccountsDB"; |
45 |
+ |
46 |
+ $user = $adb->get($USERNAME) or die "No user $USERNAME in AccountsDB"; |
47 |
+ |
48 |
+ my $zarafa = $user->prop('zarafa') || 'enabled'; |
49 |
+ return "| /usr/bin/zarafa-dagent -qj $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;" |
50 |
if ($zarafa eq 'enabled'); |
51 |
} |
52 |
- |