aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-14 18:54:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-14 18:54:24 +0000
commit2fb010e2f6564e70e4e31fc0deb317a536fdf86a (patch)
tree7144950482cec7059a25dba2ebc9e481259c3698
parent17b839d2f6eac0cf6df0a95cb47a9f52029569d3 (diff)
downloadpfsense-packages-2fb010e2f6564e70e4e31fc0deb317a536fdf86a.tar.gz
pfsense-packages-2fb010e2f6564e70e4e31fc0deb317a536fdf86a.tar.bz2
pfsense-packages-2fb010e2f6564e70e4e31fc0deb317a536fdf86a.zip
Cleanup files after processing.
-rw-r--r--packages/carp_sync_client.php3
-rw-r--r--packages/carp_sync_server.php3
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