From fc5a35cf2d03380a3e67d5710cae19eb590e8cf8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 26 Apr 2005 21:11:19 +0000 Subject: Create /var/db/pkg if it does not exist --- usr/local/www/pkg_mgr_install.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/local/www') 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 */ -- cgit v1.1