/[smeserver]/rpms/smeserver-horde/sme10/smeserver-horde-1.0.0-bz11694-alarm.patch
ViewVC logotype

Contents of /rpms/smeserver-horde/sme10/smeserver-horde-1.0.0-bz11694-alarm.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Apr 5 22:23:34 2022 UTC (2 years, 1 month ago) by jpp
Branch: MAIN
CVS Tags: smeserver-horde-1_0_0-33_el7_sme, smeserver-horde-1_0_0-30_el7_sme, smeserver-horde-1_0_0-35_el7_sme, smeserver-horde-1_0_0-32_el7_sme, smeserver-horde-1_0_0-31_el7_sme, smeserver-horde-1_0_0-34_el7_sme, HEAD
* Tue Apr 05 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0.0-30.sme
- fix alarm noise when disabled [SME: 11694]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed