1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-backup-1.14.0/root/etc/e-smith/templates/etc/crontab/backup mezzanine_patched_e-smith-backup-1.14.0/root/etc/e-smith/templates/etc/crontab/backup |
2 |
--- e-smith-backup-1.14.0/root/etc/e-smith/templates/etc/crontab/backup 2007-03-07 14:54:24.000000000 -0700 |
3 |
+++ mezzanine_patched_e-smith-backup-1.14.0/root/etc/e-smith/templates/etc/crontab/backup 2007-03-07 14:53:48.000000000 -0700 |
4 |
@@ -22,7 +22,7 @@ |
5 |
|
6 |
my $reminderTime = $backup{reminderTime} || "14:00"; |
7 |
my ($reminderHour, $reminderMin) = split (":", $reminderTime, -1); |
8 |
- |
9 |
+ my $reminderEmail = $backup{reminderEmail} || 'admin'; |
10 |
|
11 |
# remove leading zeros from minutes |
12 |
$reminderMin =~ s/00/0/; |
13 |
@@ -31,7 +31,8 @@ |
14 |
"$reminderMin $reminderHour * * * root" |
15 |
. " /bin/mt -f $device status | grep ONLINE > /dev/null 2>&1 ||" |
16 |
. ' echo "' . gettext("Remember to load the backup tape!") . '"' |
17 |
- . "\n"; |
18 |
+ . ' | mail -s "' . gettext("Remember to load the backup tape!") . '"' |
19 |
+ . " $reminderEmail\n"; |
20 |
|
21 |
my $backupTime = $backup{backupTime} || "2:00"; |
22 |
my ($backupHour, $backupMin) = split (":", $backupTime, -1); |