diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-28 19:02:41 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-28 19:02:41 +0000 |
commit | 0b739f1b5d570f4fcb214b9b8e80d47cbe34d1e6 (patch) | |
tree | 59e978b1fb5114f4bea3a31741f43864af50a36e | |
parent | f3e2c205a1d8a9605b952a6bfed10ec8f6e868ea (diff) | |
download | pfsense-0b739f1b5d570f4fcb214b9b8e80d47cbe34d1e6.zip pfsense-0b739f1b5d570f4fcb214b9b8e80d47cbe34d1e6.tar.gz |
Create /usr/local/pkg if it does not exist. This fixes the previous sync problem.
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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); |