]> Frank Brehm's Git Trees - my-stuff/backup.git/commitdiff
Bugfixing
authorFrank Brehm <frank@brehm-online.com>
Wed, 19 May 2010 13:49:16 +0000 (13:49 +0000)
committerFrank Brehm <frank@brehm-online.com>
Wed, 19 May 2010 13:49:16 +0000 (13:49 +0000)
bin/backup-wrapper.sh
lib/FrBr/Backup/App.pm

index 472dfc60a634a245e3d0edb7aab5ca660db79d51..a0dea1d0f79123a37119a14e67206d7d141e064d 100755 (executable)
@@ -35,12 +35,16 @@ BACKUP_POST_SCRIPT="${BASEDIR}/backup-post.sh"
 FUNC_LIB="${BASEDIR}/backup-functions.rc"
 
 ALL_SCRIPTS_FOUND=1
-for S in ${BACKUP_PRE_SCRIPT} ${BACKUP_SCRIPT} ${BACKUP_POST_SCRIPT} ${FUNC_LIB} ; do
+for S in ${BACKUP_PRE_SCRIPT} ${BACKUP_SCRIPT} ${BACKUP_POST_SCRIPT} ; do
     if [ ! -x ${S} ] ; then
         echo "Script '${S}' fehlt." >&2
         ALL_SCRIPTS_FOUND=0
     fi
 done
+if [ ! -f ${FUNC_LIB} ] ; then
+    echo "Script '${FUNC_LIB}' fehlt." >&2
+    ALL_SCRIPTS_FOUND=0
+fi
 
 if [ "${ALL_SCRIPTS_FOUND}" == "0" ] ; then
     exit 10
index f2ecb6fe6958ac51e7a9b0b08ab1320157156291..35d1673c3e3da9b2fe8a9bb6b32dd5ef7fe97318 100644 (file)
@@ -404,7 +404,7 @@ sub run {
             $i++;
         }
     }
-    $self->debug( sprintf( "Neues Backup-Verzeichnis gefunden: '%s'", $backup_dir ) );
+    $self->info( sprintf( "Neues Backup-Verzeichnis: '%s'", $backup_dir ) );
 
     my $type_mapping = {
         'yearly'    => {},