From 0b739f1b5d570f4fcb214b9b8e80d47cbe34d1e6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 28 Mar 2005 19:02:41 +0000 Subject: Create /usr/local/pkg if it does not exist. This fixes the previous sync problem. --- etc/inc/pfsense-utils.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 7e11946..c5a6fcf 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -877,6 +877,8 @@ if (!function_exists('php_check_syntax')){ */ function sync_package($pkg_name, $sync_depends = true, $show_message = false) { global $config; + + if(!folder_exists("/usr/local/pkg")) mwexec("/bin/mkdir -p /usr/local/pkg/pf"); if(!$config['installedpackages']['package']) return; if(!is_numeric($pkg_name)) { $pkg_id = get_pkg_id($pkg_name); -- cgit v1.1