aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dyntables
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dyntables')
-rw-r--r--packages/dyntables/pkg/dyntables.inc10
-rw-r--r--packages/dyntables/pkg/dyntables.xml4
2 files changed, 10 insertions, 4 deletions
diff --git a/packages/dyntables/pkg/dyntables.inc b/packages/dyntables/pkg/dyntables.inc
index 853eea11..97e8a422 100644
--- a/packages/dyntables/pkg/dyntables.inc
+++ b/packages/dyntables/pkg/dyntables.inc
@@ -43,11 +43,17 @@ function syncPackageDyntables() {
}
function installPackageDyntables() {
-
+ /* move temp files */
+ @rename('/usr/local/www/diag_dhcp_leases.php', '/usr/local/pkg/diag_dhcp_leases.php.org');
+ @rename('/usr/local/pkg/dyntables.js', '/usr/local/www/javascript/dyntables.js');
+ @rename('/usr/local/pkg/diag_dhcp_leases.php', '/usr/local/www/diag_dhcp_leases.php');
}
function deinstallPackageDyntables() {
-
+ /* move backup files */
+ @unlink('/usr/local/www/diag_dhcp_leases.php');
+ @unlink('/usr/local/www/javascript/dyntables.js');
+ @rename('/usr/local/pkg/diag_dhcp_leases.php.org', '/usr/local/www/diag_dhcp_leases.php');
}
function checkForExtension($alertClass) {
diff --git a/packages/dyntables/pkg/dyntables.xml b/packages/dyntables/pkg/dyntables.xml
index 529e587e..8a249966 100644
--- a/packages/dyntables/pkg/dyntables.xml
+++ b/packages/dyntables/pkg/dyntables.xml
@@ -81,7 +81,7 @@
|
-->
<additional_files_needed>
- <prefix>/usr/local/www/</prefix>
+ <prefix>/usr/local/pkg/</prefix>
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/dyntables/www/php/diag_dhcp_leases.php</item>
</additional_files_needed>
@@ -91,7 +91,7 @@
|
-->
<additional_files_needed>
- <prefix>/usr/local/www/javascript</prefix>
+ <prefix>/usr/local/pkg/</prefix>
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/dyntables/www/js/dyntables.js</item>
</additional_files_needed>