fix archiv to archive

This commit is contained in:
Marko Oldenburg 2019-02-17 16:20:10 +01:00
parent 5c16d95094
commit b8ba975de3

View File

@ -26,7 +26,7 @@
#
###############################################################################
#
# Version 1.0.0.2
# Version 1.0.0.3
use strict;
@ -117,7 +117,7 @@ sub MainBackup {
$fnState = rotateDailyBackupfiles unless ($fnState);
$fnState = createDBdump() if ( $self->{config}->{MYSQLDUMP} and not $fnState );
$fnState = runBackup(( (split(" ", localtime(time)))[0] =~ /^(Sun)$/ ? 'archiv' : 'daily' )) unless ($fnState);
$fnState = runBackup(( (split(" ", localtime(time)))[0] =~ /^(Sun)$/ ? 'archive' : 'daily' )) unless ($fnState);
sendStateToFHEM( ($fnState ? 'error' : 'ok') ) if ( $self->{config}->{FHEMSUPPORT} );
}