1 |
jpp |
1.1 |
diff -urN smeserver-horde-1.0.0.old/root/etc/e-smith/templates/etc/crontab/hordeagendas smeserver-horde-1.0.0/root/etc/e-smith/templates/etc/crontab/hordeagendas |
2 |
|
|
--- smeserver-horde-1.0.0.old/root/etc/e-smith/templates/etc/crontab/hordeagendas 2021-11-06 22:27:25.974949023 -0400 |
3 |
|
|
+++ smeserver-horde-1.0.0/root/etc/e-smith/templates/etc/crontab/hordeagendas 2021-11-06 22:30:38.000000000 -0400 |
4 |
|
|
@@ -1,9 +1,16 @@ |
5 |
|
|
{ |
6 |
|
|
$OUT = ''; |
7 |
|
|
+ my $status = $horde{'status'}; |
8 |
|
|
my $agendas = $horde{agendas} || "disabled"; |
9 |
|
|
|
10 |
|
|
$OUT .="# Horde - Daily Agenda Reminders\n"; |
11 |
|
|
- if (defined $agendas && $agendas eq 'enabled') |
12 |
|
|
+ if (defined $status && $status ne 'enabled') |
13 |
|
|
+ { |
14 |
|
|
+ $OUT .= "# horde is not enabled."; |
15 |
|
|
+ } |
16 |
|
|
+ |
17 |
|
|
+ elsif (defined $agendas && $agendas eq 'enabled') |
18 |
|
|
+ |
19 |
|
|
{ |
20 |
|
|
|
21 |
|
|
my $agendatime = $horde{agendatime} || "5"; |
22 |
|
|
diff -urN smeserver-horde-1.0.0.old/root/etc/e-smith/templates/etc/crontab/hordereminders smeserver-horde-1.0.0/root/etc/e-smith/templates/etc/crontab/hordereminders |
23 |
|
|
--- smeserver-horde-1.0.0.old/root/etc/e-smith/templates/etc/crontab/hordereminders 2021-11-06 22:27:25.974949023 -0400 |
24 |
|
|
+++ smeserver-horde-1.0.0/root/etc/e-smith/templates/etc/crontab/hordereminders 2021-11-06 22:32:21.000000000 -0400 |
25 |
|
|
@@ -1,9 +1,18 @@ |
26 |
|
|
{ |
27 |
|
|
$OUT = ''; |
28 |
|
|
+ my $status = $horde{'status'}; |
29 |
|
|
my $reminders = $horde{reminders} || "enabled"; |
30 |
|
|
|
31 |
|
|
$OUT .="# Horde - Calendar Alarm Reminders\n"; |
32 |
|
|
- if ($reminders eq 'enabled') |
33 |
|
|
+ if (defined $status && $status ne 'enabled') |
34 |
|
|
+ { |
35 |
|
|
+ $OUT .= "# horde is not enabled."; |
36 |
|
|
+ } |
37 |
|
|
+ |
38 |
|
|
+ elsif ($reminders eq 'enabled') |
39 |
|
|
+ { |
40 |
|
|
+ my $remindertime = $horde{remindertime} || "5"; |
41 |
|
|
+ |
42 |
|
|
{ |
43 |
|
|
my $remindertime = $horde{remindertime} || "5"; |
44 |
|
|
|