diff options
author | Ermal <eri@pfsense.org> | 2011-02-12 18:33:09 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-02-12 18:33:09 +0000 |
commit | 5ee6a4571f33832202fe181821aab0f33a1b6d88 (patch) | |
tree | 84e283c7a4121596149bbdd1c8ca17ae0b1e9546 /usr/local/www/widgets | |
parent | b3205cc39e7b418eebbe5e97dc85261c1c2caf09 (diff) | |
download | pfsense-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')
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 1 |
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")); |