aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-03-27 18:36:25 -0600
committermcrane <mctch@yahoo.com>2009-03-27 18:36:25 -0600
commitd24ce8924908cbaa8b2484848d340f8f3b5250e5 (patch)
treecc2bbe8b1dddc1e29b00a87c0d1e98ebe3912ff9
parente71f29843a079db4b5ca9f6636342c69ab1a22c8 (diff)
downloadpfsense-packages-d24ce8924908cbaa8b2484848d340f8f3b5250e5.tar.gz
pfsense-packages-d24ce8924908cbaa8b2484848d340f8f3b5250e5.tar.bz2
pfsense-packages-d24ce8924908cbaa8b2484848d340f8f3b5250e5.zip
TFTP fix file paths
-rw-r--r--config/tftp/tftp.inc7
-rw-r--r--config/tftp/tftp.xml4
-rwxr-xr-xpkg_config.7.xml2
3 files changed, 9 insertions, 4 deletions
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 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>tftp Settings</name>
- <version>1.0.3</version>
+ <version>1.0.4</version>
<title>TFTP: Settings</title>
<include_file>/usr/local/pkg/tftp.inc</include_file>
<menu>
@@ -60,7 +60,7 @@
<tabs>
<tab>
<text>Files</text>
- <url>/tftp/tftp_files.php</url>
+ <url>/packages/tftp/tftp_files.php</url>
</tab>
</tabs>
<configpath>installedpackages->package->$packagename->configuration->tftp</configpath>
diff --git a/pkg_config.7.xml b/pkg_config.7.xml
index efd97437..df7335ba 100755
--- a/pkg_config.7.xml
+++ b/pkg_config.7.xml
@@ -120,7 +120,7 @@
<pkginfolink/>
<config_file>http://www.pfsense.com/packages/config/tftp/tftp.xml</config_file>
<depends_on_package_base_url>http://files.pfsense.org/packages/7/All/</depends_on_package_base_url>
- <version>1.0.2</version>
+ <version>1.0.3</version>
<status>Stable</status>
<required_version>1.2.1</required_version>
<maintainer>markjcrane@gmail.com</maintainer>