summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-12-16 20:33:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-12-16 20:33:05 +0000
commit8aca7e9befe1623e281ec778f34813ba8c29423e (patch)
treebc94a3d5e5fe69f75a2837e6722d72e4001d3b68 /usr
parent425cbd0a58a096be08e7ac04efafedc5ab008296 (diff)
downloadpfsense-8aca7e9befe1623e281ec778f34813ba8c29423e.zip
pfsense-8aca7e9befe1623e281ec778f34813ba8c29423e.tar.gz
Fix delete and install.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 6f36c16..c547fa9 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -31,6 +31,7 @@ require("guiconfig.inc");
require("xmlparse_pkg.inc");
if(!file_exists("/usr/local/pkg/")) mwexec("mkdir -p /usr/local/pkg/");
+if(!file_exists("/usr/local/www/ext/")) mwexec("mkdir -p /usr/local/www/ext");
$pb_percent = 1;
@@ -249,7 +250,7 @@ if($pkg_config['packages']['package'][$id]['logging']) {
// logging facilities.
$pkgent['logging']['facility'] = $pkg_config['packages']['package'][$id]['logging']['facility'];
$pkgent['logging']['logfile_name'] = $pkg_config['packages']['package'][$id]['logging']['logfile_name'];
- mwexec("clog -i -s 32768 /var/log/" . $pkgent['logging']['logfile_name']);
+ mwexec("/usr/sbin/clog -i -s 32768 /var/log/" . $pkgent['logging']['logfile_name']);
mwexec("chmod 0600 /var/log/" . $pkgent['logging']['logfile_name']);
add_text_to_file("/etc/syslog.conf",$pkgent['logging']['facility'] . "\t\t\t" . $pkgent['logging']['logfile_name']);
mwexec("/usr/bin/killall -HUP syslogd");
@@ -396,6 +397,7 @@ echo "\n<script language=\"JavaScript\">document.progressbar.style.visibility='h
echo "\n<script language=\"JavaScript\">document.progholder.style.visibility='hidden';</script>";
function add_text_to_file($file, $text) {
+ global $fd_log;
fwrite($fd_log, "Adding needed text items:\n");
$filecontents = exec_command_and_return_text("cat " . $file);
$text = ereg_replace($text, "", $filecontents);
OpenPOWER on IntegriCloud