aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/tftp/tftp.inc3
-rw-r--r--packages/tftp/tftp.xml2
-rw-r--r--packages/tftp/tftp_files.tmp3
3 files changed, 5 insertions, 3 deletions
diff --git a/packages/tftp/tftp.inc b/packages/tftp/tftp.inc
index 531c3f29..32c11f8b 100644
--- a/packages/tftp/tftp.inc
+++ b/packages/tftp/tftp.inc
@@ -138,7 +138,8 @@ function php_install_command()
//extract a specific directory to /usr/local/freeswitch
if (file_exists('/tmp/'.$filename)) {
- system('cd /; tar xvpfz /tmp/tftp.bak.tgz');
+ system('cd /; tar xvpfz /tmp/tftp.bak.tgz');
+ system('chmod -R 744 /tftpboot/*');
unset($filename);
}
diff --git a/packages/tftp/tftp.xml b/packages/tftp/tftp.xml
index d80d7b75..d92e5301 100644
--- a/packages/tftp/tftp.xml
+++ b/packages/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>0.8.2</version>
+ <version>0.8.4</version>
<title>TFTP: Settings</title>
<include_file>/usr/local/pkg/tftp.inc</include_file>
<menu>
diff --git a/packages/tftp/tftp_files.tmp b/packages/tftp/tftp_files.tmp
index 1ea1a346..b44ea22d 100644
--- a/packages/tftp/tftp_files.tmp
+++ b/packages/tftp/tftp_files.tmp
@@ -62,7 +62,8 @@ if ($_GET['a'] == "other") {
//extract a specific directory to /tftpboot
if (file_exists('/tmp/'.$filename)) {
//echo "The file $filename exists";
- system('cd /; tar xvpfz /tmp/'.$filename);
+ system('cd /; tar xvpfz /tmp/'.$filename);
+ system('chmod -R 744 /tftpboot/*');
header( 'Location: tftp_files.php?savemsg=Backup+has+been+restored.' ) ;
}
else {