From: Frank Brehm Date: Wed, 19 May 2010 13:49:16 +0000 (+0000) Subject: Bugfixing X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=bc6191c2e0db216fe93352ce9303115f083a1559;p=my-stuff%2Fbackup.git Bugfixing --- diff --git a/bin/backup-wrapper.sh b/bin/backup-wrapper.sh index 472dfc6..a0dea1d 100755 --- a/bin/backup-wrapper.sh +++ b/bin/backup-wrapper.sh @@ -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 diff --git a/lib/FrBr/Backup/App.pm b/lib/FrBr/Backup/App.pm index f2ecb6f..35d1673 100644 --- a/lib/FrBr/Backup/App.pm +++ b/lib/FrBr/Backup/App.pm @@ -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' => {},