summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-24 00:06:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-24 00:06:15 +0000
commit6cc843c39b3accebc7e60c0486d42b92d1496877 (patch)
treec058103913b8af2e363a5c90b3dc971bd0557ef8 /usr/local/www/index.php
parent8c28ce805700a4ab6996263338eab77120d269a4 (diff)
downloadpfsense-6cc843c39b3accebc7e60c0486d42b92d1496877.zip
pfsense-6cc843c39b3accebc7e60c0486d42b92d1496877.tar.gz
* Remount RO after unlinking file
* Only reinstall packages if platform is pfSense (full installation)
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 8c50eec..7909084 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -67,8 +67,11 @@
if($config['installedpackages'] <> '') {
conf_mount_rw();
unlink('/conf/needs_package_sync');
- header('Location: pkg_mgr_install.php?mode=reinstallall');
- exit;
+ conf_mount_ro();
+ if($g['platform'] == "pfSense") {
+ header('Location: pkg_mgr_install.php?mode=reinstallall');
+ exit;
+ }
}
}
OpenPOWER on IntegriCloud