diff options
-rw-r--r-- | packages/carp_sync_client.php | 3 | ||||
-rw-r--r-- | packages/carp_sync_server.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/packages/carp_sync_client.php b/packages/carp_sync_client.php index 12f54afc..cfe59d4b 100644 --- a/packages/carp_sync_client.php +++ b/packages/carp_sync_client.php @@ -52,6 +52,9 @@ if($config['installedpackages']['carpsettings']['config'] != "") { mwexec("/usr/bin/scp {$g['tmp_path']}/aliases_section.txt root@{$synchronizetoip}:/tmp/"); mwexec("/usr/bin/scp {$g['tmp_path']}/nat_section.txt root@{$synchronizetoip}:/tmp/"); mwexec("/usr/bin/ssh {$synchronizetoip} /usr/local/pkg/carp_sync_server.php"); + unlink("{$g['tmp_path']}/rules_section.txt"); + unlink("{$g['tmp_path']}/aliases_section.txt"); + unlink("{$g['tmp_path']}/nat_section.txt"); } } } diff --git a/packages/carp_sync_server.php b/packages/carp_sync_server.php index d832691f..cb292488 100644 --- a/packages/carp_sync_server.php +++ b/packages/carp_sync_server.php @@ -44,6 +44,9 @@ if($config['installedpackages']['carpsettings']['config'] != "") restore_config_section("aliases", $aliases); restore_config_section("nat", $nat); filter_configure(); + unlink("{$g['tmp_path']}/rules_section.txt"); + unlink("{$g['tmp_path']}/aliases_section.txt"); + unlink("{$g['tmp_path']}/nat_section.txt"); } ?>
\ No newline at end of file |