summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_mgr_install.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2016-12-09 11:35:13 -0500
committerSteve Beaver <sbeaver@netgate.com>2016-12-09 11:35:42 -0500
commit8d8b2fc7f987ac1d2a87ca0dd66bad33e020daab (patch)
tree8ff31327f9b356468336348098132ad6c7392718 /src/usr/local/www/pkg_mgr_install.php
parent5eab2de4eca5d0c8c7bd48bc5aff514fd2797346 (diff)
downloadpfsense-8d8b2fc7f987ac1d2a87ca0dd66bad33e020daab.zip
pfsense-8d8b2fc7f987ac1d2a87ca0dd66bad33e020daab.tar.gz
Fix log file deletion
Diffstat (limited to 'src/usr/local/www/pkg_mgr_install.php')
-rw-r--r--src/usr/local/www/pkg_mgr_install.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/pkg_mgr_install.php b/src/usr/local/www/pkg_mgr_install.php
index f0ef8e9..82c17ee 100644
--- a/src/usr/local/www/pkg_mgr_install.php
+++ b/src/usr/local/www/pkg_mgr_install.php
@@ -446,7 +446,8 @@ if ($confirmed && !$completed) {
$upgrade_script = "/usr/local/sbin/{$g['product_name']}-upgrade -y -l {$logfilename}.txt -p {$g['tmp_path']}/{$g['product_name']}-upgrade.sock";
// Remove the log file before starting
- unlink_if_exists($logfilename);
+
+ unlink_if_exists($logfilename . ".txt");
switch ($pkgmode) {
case 'delete':
OpenPOWER on IntegriCloud