summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets/system_information.widget.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-02-12 18:33:09 +0000
committerErmal <eri@pfsense.org>2011-02-12 18:33:09 +0000
commit5ee6a4571f33832202fe181821aab0f33a1b6d88 (patch)
tree84e283c7a4121596149bbdd1c8ca17ae0b1e9546 /usr/local/www/widgets/widgets/system_information.widget.php
parentb3205cc39e7b418eebbe5e97dc85261c1c2caf09 (diff)
downloadpfsense-5ee6a4571f33832202fe181821aab0f33a1b6d88.zip
pfsense-5ee6a4571f33832202fe181821aab0f33a1b6d88.tar.gz
Remove any previous file with the same name as the one that will be downloaded. This avoid the gui to always show update availble even though the site could not be reached.
Diffstat (limited to 'usr/local/www/widgets/widgets/system_information.widget.php')
-rw-r--r--usr/local/www/widgets/widgets/system_information.widget.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php
index dfc85c1..90dcb36 100644
--- a/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/usr/local/www/widgets/widgets/system_information.widget.php
@@ -48,6 +48,7 @@ if($_REQUEST['getupdatestatus']) {
$nanosize = "-nanobsd-" . strtolower(trim(file_get_contents("/etc/nanosize.txt")));
}
+ @unlink("/tmp/{$g['product_name']}_version");
download_file_with_progress_bar("{$updater_url}/version{$nanosize}", "/tmp/{$g['product_name']}_version");
$remote_version = trim(@file_get_contents("/tmp/{$g['product_name']}_version"));
OpenPOWER on IntegriCloud