mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-26 16:19:32 +00:00
update: no backup for the check command
git-svn-id: https://svn.fhem.de/fhem/trunk@6438 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1e74fe22ac
commit
39ca0e40df
@ -112,7 +112,7 @@ doUpdate($$)
|
|||||||
$basePath = $1;
|
$basePath = $1;
|
||||||
$ctrlFileName = $2;
|
$ctrlFileName = $2;
|
||||||
|
|
||||||
if(AttrVal("global", "backup_before_update", 0)) {
|
if(AttrVal("global", "backup_before_update", 0) && $arg ne "check") {
|
||||||
my $cmdret = AnalyzeCommand(undef, "backup");
|
my $cmdret = AnalyzeCommand(undef, "backup");
|
||||||
if ($cmdret !~ m/backup done.*/) {
|
if ($cmdret !~ m/backup done.*/) {
|
||||||
uLog 1, "Something went wrong during backup: $cmdret";
|
uLog 1, "Something went wrong during backup: $cmdret";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user