/[smecontribs]/rpms/smeserver-rdiff-backup/contribs7/smeserver-rdiff-backup-0.0.1-defaults.patch
ViewVC logotype

Contents of /rpms/smeserver-rdiff-backup/contribs7/smeserver-rdiff-backup-0.0.1-defaults.patch

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


Revision 1.2 - (show annotations) (download)
Sun Nov 23 04:58:10 2008 UTC (16 years ago) by slords
Branch: MAIN
Changes since 1.1: +0 -0 lines
FILE REMOVED
Part of epel

1 diff -Nur -x '*.orig' -x '*.rej' smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/defaults/rdiff-backup/BackupPath mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/defaults/rdiff-backup/BackupPath
2 --- smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/defaults/rdiff-backup/BackupPath 1970-01-01 10:00:00.000000000 +1000
3 +++ mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/defaults/rdiff-backup/BackupPath 2006-04-27 17:01:47.437636508 +1000
4 @@ -0,0 +1 @@
5 +/media/usbdisk/rdiff-backup
6 diff -Nur -x '*.orig' -x '*.rej' smeserver-rdiff-backup-0.0.1/root/sbin/e-smith/do_rdiff-backup mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/sbin/e-smith/do_rdiff-backup
7 --- smeserver-rdiff-backup-0.0.1/root/sbin/e-smith/do_rdiff-backup 2006-04-27 17:03:17.163839626 +1000
8 +++ mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/sbin/e-smith/do_rdiff-backup 2006-04-27 16:59:42.581627815 +1000
9 @@ -1,10 +1,12 @@
10 #!/bin/sh
11
12 -BACKUP=/media/usbdisk/rdiff-backup
13 +/sbin/e-smith/config get rdiff-backup || exit 0
14
15 -if [ ! -d $BACKUP ]
16 +BACKUP_PATH=$(/sbin/e-smith/config getprop rdiff-backup BackupPath)
17 +
18 +if [ ! -d $BACKUP_PATH ]
19 then
20 - echo "$BACKUP does not exist - is it mounted?"
21 + echo "$BACKUP_PATH does not exist - is it mounted?"
22 exit 1
23 fi
24
25 @@ -12,7 +14,7 @@
26
27 ID=$(/sbin/e-smith/config getprop sysconfig SystemID)
28
29 -DIR=$BACKUP/$ID
30 +DIR=$BACKUP_PATH/$ID
31
32 [ -d $DIR ] || mkdir -p $DIR
33

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