summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-02-27 23:45:55 +0000
committerBill Marquette <billm@pfsense.org>2005-02-27 23:45:55 +0000
commit6c9927fd0d38b9389ab397448396b24c66f13d86 (patch)
tree5fabcf1e08eaa3cbe039960e2d5bd9813df0caa3 /usr
parent0035d7a6e6f02b2e0a270139869edf9b43b3baea (diff)
downloadpfsense-6c9927fd0d38b9389ab397448396b24c66f13d86.zip
pfsense-6c9927fd0d38b9389ab397448396b24c66f13d86.tar.gz
more path cleanup
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_mgr.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index 6d1d42e..daafea3 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -76,7 +76,7 @@ $config_location = "http://www.pfsense.com/packages/pkg_config.xml";
if($config['package_location'])
$config_location = $config['package_location'];
-if(!file_exists("/tmp/pkg_config.xml")) {
+if(!file_exists("{$g['tmp_path']}/pkg_config.xml")) {
mwexec("cd {$g['tmp_path']} && /usr/bin/fetch \"" . $config_location . "\" >/dev/null 2>&1 ");
if(!file_exists("{$g['tmp_path']}/pkg_config.xml")) {
print_info_box_np("Could not download pkg_config.xml from pfSense.com. Check your DNS settings.");
@@ -156,5 +156,5 @@ if(!$pkg_config['packages']) {
</body>
</html>
-<?php system("rm /tmp/pkg*"); ?>
+<?php system("rm {$g['tmp_path']}/pkg*"); ?>
OpenPOWER on IntegriCloud