summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-28 19:02:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-28 19:02:41 +0000
commit0b739f1b5d570f4fcb214b9b8e80d47cbe34d1e6 (patch)
tree59e978b1fb5114f4bea3a31741f43864af50a36e /etc
parentf3e2c205a1d8a9605b952a6bfed10ec8f6e868ea (diff)
downloadpfsense-0b739f1b5d570f4fcb214b9b8e80d47cbe34d1e6.zip
pfsense-0b739f1b5d570f4fcb214b9b8e80d47cbe34d1e6.tar.gz
Create /usr/local/pkg if it does not exist. This fixes the previous sync problem.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc2
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);
OpenPOWER on IntegriCloud