summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr_install.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-26 21:11:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-26 21:11:19 +0000
commitfc5a35cf2d03380a3e67d5710cae19eb590e8cf8 (patch)
treea01b101d6ea56da982f61291d0db0c62cf492d3b /usr/local/www/pkg_mgr_install.php
parent0d8a219e85ccf8f83b5e9e8b4a92bdf226d335f4 (diff)
downloadpfsense-fc5a35cf2d03380a3e67d5710cae19eb590e8cf8.zip
pfsense-fc5a35cf2d03380a3e67d5710cae19eb590e8cf8.tar.gz
Create /var/db/pkg if it does not exist
Diffstat (limited to 'usr/local/www/pkg_mgr_install.php')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 0e6066b..e68bf9c 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -34,6 +34,9 @@ require("xmlparse_pkg.inc");
conf_mount_rw();
+if(!file_exists("/var/db/pkg"))
+ mkdir("/var/db/pkg");
+
/* /usr/local/pkg/ is where xml package files are stored. */
make_dirs("/usr/local/pkg");
/* /usr/local/pkg/pf is where custom php hook packages live to alter the rules when needed */
OpenPOWER on IntegriCloud