~ubuntu-branches/ubuntu/lucid/backupninja/lucid

« back to all changes in this revision

Viewing changes to handlers/trac.in

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-25 16:19:54 UTC
  • mfrom: (1.1.7 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080725161954-ruo9lvo97ny1z08k
Tags: 0.9.6-3
Removed configure.ac and regenerate the autoconf junk so 
that substitution variables get set properly (Closes: #494728)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
getconf dest /var/backups/trac
10
10
getconf tmp /var/backups/trac.tmp
11
11
 
12
 
error=0
13
12
cd $src
14
13
for repo in `find . -name VERSION`
15
14
do
38
37
    fi
39
38
    if [ $code != 0 ]; then
40
39
       error "command failed -- trac-admin $src/$repo hotcopy $tmp/$repo"
41
 
       error=1
42
40
    fi
43
41
done
44
42
 
45
 
if [ $error -eq 1 ]; then
46
 
    echo "Error: because of earlier errors, we are leaving trac backups in $tmp instead of $dest"
47
 
else
48
 
    if [ -d $dest -a -d $tmp ]; then
49
 
        rm -rf $dest
50
 
    fi
51
 
    if [ -d $tmp ]; then
52
 
        mv $tmp $dest
53
 
    fi
 
43
if [ -d $dest -a -d $tmp ]; then
 
44
     rm -rf $dest
 
45
fi
 
46
if [ -d $tmp ]; then
 
47
     mv $tmp $dest
54
48
fi
55
49
 
56
50
exit 0