summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-05-29 02:55:09 +0000
committerColin Smith <colin@pfsense.org>2005-05-29 02:55:09 +0000
commitb3a93cb0d1a8fa63f535badde35bd77e83ea68e5 (patch)
treeec9552a2b1e101bf9d844c4b4648280bf792a480 /usr
parent091ac3055bf14d46e379e7b9459023e572fade1d (diff)
downloadpfsense-b3a93cb0d1a8fa63f535badde35bd77e83ea68e5.zip
pfsense-b3a93cb0d1a8fa63f535badde35bd77e83ea68e5.tar.gz
Do not append the version name to $tofetch - it isn't (currently) used.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_firmware_auto.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php
index f0a2ed6..8224ed1 100755
--- a/usr/local/www/system_firmware_auto.php
+++ b/usr/local/www/system_firmware_auto.php
@@ -128,7 +128,7 @@ foreach($categories as $index => $key) {
update_output_window($static_output);
foreach($versions[$key] as $ver) { // Begin system updates.
foreach($update_types as $type) if(in_array($type, array_keys($ver))) $url_type = $type;
- $tofetch = "pfSense-" . ucfirst($url_type) . "-Update-" . $ver['version'] . "-" . $ver['name'] . ".tgz";
+ $tofetch = "pfSense-" . ucfirst($url_type) . "-Update-" . $ver['version'] . ".tgz";
$static_output_bak = $static_output;
$static_output .= "\n\t" . $ver['version'] . "-" . $ver['name'] . " ";
update_output_window($static_output);
@@ -136,12 +136,14 @@ foreach($categories as $index => $key) {
if($url_type == "binary") {
exec("/etc/rc.firmware delta_update " . "/tmp/" . $tofetch, $bdiff_errors);
if(is_string($bdiff_errors[0])) {
+ unlink_if_exists("/tmp/" . $tofetch);
$static_output .= "failed!\n";
update_output_window($static_output);
break;
}
} else {
exec("/etc/rc.firmware pfSenseupgrade " . "/tmp/" . $tofetch);
+ unlink_if_exists("/tmp/" . $tofetch);
}
$static_output = $static_output_bak . "done.\n";
}
OpenPOWER on IntegriCloud