aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dyntables/pkg/dyntables.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dyntables/pkg/dyntables.inc')
-rw-r--r--packages/dyntables/pkg/dyntables.inc10
1 files changed, 8 insertions, 2 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) {