98_update.pm: fix updateInBackground=0 & backup_before_update=1 (Forum #82614)

git-svn-id: https://svn.fhem.de/fhem/trunk@15861 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2018-01-12 20:44:51 +00:00
parent 1e6fc7924e
commit 1ead4dc74f

View File

@@ -251,7 +251,7 @@ doUpdate($$$$)
if(AttrVal("global", "backup_before_update", 0) &&
$arg ne "check" && $curr==1) {
my $cmdret = AnalyzeCommand(undef, "backup");
if ($cmdret !~ m/backup done.*/) {
if($cmdret !~ m/backup done.*|Started.*in the background/) {
uLog 1, "Something went wrong during backup: $cmdret";
uLog 1, "update was canceled. Please check manually!";
return;