diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-26 21:11:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-26 21:11:19 +0000 |
commit | fc5a35cf2d03380a3e67d5710cae19eb590e8cf8 (patch) | |
tree | a01b101d6ea56da982f61291d0db0c62cf492d3b /usr/local/www | |
parent | 0d8a219e85ccf8f83b5e9e8b4a92bdf226d335f4 (diff) | |
download | pfsense-fc5a35cf2d03380a3e67d5710cae19eb590e8cf8.zip pfsense-fc5a35cf2d03380a3e67d5710cae19eb590e8cf8.tar.gz |
Create /var/db/pkg if it does not exist
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 3 |
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 */ |