mysql,pgsql,svn,sys: fixed failing "is vserver running" test
[matthijs/upstream/backupninja.git] / handlers / svn
index 6ac54029547665829ba01b09ccbd47a19e18d784..4dca225172cce1f6b30825221d0529c7fd8192e6 100644 (file)
@@ -5,7 +5,7 @@
 getconf src /var/lib/svn
 getconf dest /var/backups/svn
 getconf tmp /var/backups/svn.tmp
-getconf HOTBACKUP /usr/lib/subversion/hot-backup.py
+getconf HOTBACKUP "/usr/bin/svnadmin hotcopy"
 getconf vsname 
 
 error=0
@@ -32,7 +32,7 @@ then
        [ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
         # is it running ?
        running=`$VSERVERINFO $vsname RUNNING`
-       [ $running = 1 ] || fatal "vserver $vsname is not running."
+       [ "$running" = "1" ] || fatal "vserver $vsname is not running."
 fi
 
 cd $vroot$src