projects
/
matthijs
/
upstream
/
backupninja-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed improper use of $vuserhome as reported as Debian bug #351083
[matthijs/upstream/backupninja-vserver.git]
/
handlers
/
trac
diff --git
a/handlers/trac
b/handlers/trac
index d344082f63d9450041d4190fbd13fa500a77fa93..54279241dfa96697dcd365b42760e5d00ea9f62e 100644
(file)
--- a/
handlers/trac
+++ b/
handlers/trac
@@
-1,3
+1,4
@@
+# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
#
# this handler will backup trac environments (based on the svn handler)
#
#
# this handler will backup trac environments (based on the svn handler)
#
@@
-14,14
+15,15
@@
for repo in `find . -name VERSION`
do
repo=`dirname $repo`
do
repo=`dirname $repo`
- # Just make the $tmp dir, not $tmp/$repo
- ret=`mkdir -p $tmp 2>&1`
+ # Just make the parent directory for $tmp/$repo
+ parentdir=`dirname $tmp/$repo`
+ ret=`mkdir -p $parentdir 2>&1`
code=$?
if [ "$ret" ]; then
debug "$ret"
fi
if [ $code != 0 ]; then
code=$?
if [ "$ret" ]; then
debug "$ret"
fi
if [ $code != 0 ]; then
- error "command failed mkdir -p $
tmp
"
+ error "command failed mkdir -p $
parentdir
"
fi
ret=`trac-admin $src/$repo hotcopy $tmp/$repo 2>&1`
fi
ret=`trac-admin $src/$repo hotcopy $tmp/$repo 2>&1`