From d24ce8924908cbaa8b2484848d340f8f3b5250e5 Mon Sep 17 00:00:00 2001 From: mcrane Date: Fri, 27 Mar 2009 18:36:25 -0600 Subject: TFTP fix file paths --- config/tftp/tftp.inc | 7 ++++++- config/tftp/tftp.xml | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'config/tftp') diff --git a/config/tftp/tftp.inc b/config/tftp/tftp.inc index ee65f52d..8649bc22 100644 --- a/config/tftp/tftp.inc +++ b/config/tftp/tftp.inc @@ -109,8 +109,13 @@ function php_install_command() } + if (!is_dir('/usr/local/www/packages/')) { + // Create the packages directory + exec("mkdir /usr/local/www/packages/"); + } + if (!is_dir('/usr/local/www/packages/tftp')) { - // Create the directory + // Create the tftp directory exec("mkdir /usr/local/www/packages/tftp"); } diff --git a/config/tftp/tftp.xml b/config/tftp/tftp.xml index cf7a2a98..343110f5 100644 --- a/config/tftp/tftp.xml +++ b/config/tftp/tftp.xml @@ -41,7 +41,7 @@ Describe your package requirements here Currently there are no FAQ items provided. tftp Settings - 1.0.3 + 1.0.4 TFTP: Settings /usr/local/pkg/tftp.inc @@ -60,7 +60,7 @@ Files - /tftp/tftp_files.php + /packages/tftp/tftp_files.php installedpackages->package->$packagename->configuration->tftp -- cgit v1.2.3