mirror of https://github.com/aredn/aredn.git
bugfix: nodeupgraded needs to be set before taring up the archive
ref AREDN->ticket:131
This commit is contained in:
parent
87f655f103
commit
650d1bca28
|
@ -239,6 +239,7 @@ if($fw_install and -f "$tmpdir/firmware")
|
||||||
}
|
}
|
||||||
close $SYSUPGRADECONF;
|
close $SYSUPGRADECONF;
|
||||||
close $TMPSYSUPGRADECONF;
|
close $TMPSYSUPGRADECONF;
|
||||||
|
nvram_set("nodeupgraded","1");
|
||||||
|
|
||||||
system("tar -czf /tmp/arednsysupgradebackup.tgz -T /tmp/sysupgradefilelist");
|
system("tar -czf /tmp/arednsysupgradebackup.tgz -T /tmp/sysupgradefilelist");
|
||||||
if ($? == 1) {
|
if ($? == 1) {
|
||||||
|
@ -249,13 +250,12 @@ if($fw_install and -f "$tmpdir/firmware")
|
||||||
";
|
";
|
||||||
page_footer();
|
page_footer();
|
||||||
print "</body></html>";
|
print "</body></html>";
|
||||||
|
nvram_set("nodeupgraded","0");
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
system("rm -f /tmp/sysupgradefilelist");
|
system("rm -f /tmp/sysupgradefilelist");
|
||||||
|
|
||||||
|
|
||||||
nvram_set("nodeupgraded","1");
|
|
||||||
print "
|
print "
|
||||||
<center><h2>Firmware will be written in the background.</h2>
|
<center><h2>Firmware will be written in the background.</h2>
|
||||||
<h3>If you are connected to the LAN of this node you may need to acquire a new<br>
|
<h3>If you are connected to the LAN of this node you may need to acquire a new<br>
|
||||||
|
|
Loading…
Reference in New Issue