aboutsummaryrefslogtreecommitdiffstats
path: root/packages/carp_sync_client.php
diff options
context:
space:
mode:
Diffstat (limited to 'packages/carp_sync_client.php')
-rw-r--r--packages/carp_sync_client.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/carp_sync_client.php b/packages/carp_sync_client.php
index b56c72e3..f7c9e90a 100644
--- a/packages/carp_sync_client.php
+++ b/packages/carp_sync_client.php
@@ -37,10 +37,10 @@ if($already_processed != 1)
if($carp['synchronizerules'] <> "") {
$current_rules_section = backup_config_section("filter");
/* generate firewall rules xml */
- $fout = fopen("{$g['tmp_path']}/rules_section.txt","w");
+ $fout = fopen("{$g['tmp_path']}/filter_section.txt","w");
fwrite($fout, $current_rules_section);
fclose($fout);
- mwexec("/usr/bin/scp {$g['tmp_path']}/rules_section.txt root@{$synchronizetoip}:/tmp/");
+ mwexec("/usr/bin/scp {$g['tmp_path']}/filter_section.txt root@{$synchronizetoip}:/tmp/");
unlink("{$g['tmp_path']}/rules_section.txt");
}
if($carp['synchronizenat'] <> "") {
@@ -64,15 +64,15 @@ if($already_processed != 1)
if($carp['synchronizetrafficshaper'] <> "") {
$current_trafficshaper_section = backup_config_section("shaper");
/* generate aliases xml */
- $fout = fopen("{$g['tmp_path']}/trafficshaper_section.txt","w");
+ $fout = fopen("{$g['tmp_path']}/shaper_section.txt","w");
fwrite($fout, $current_trafficshaper_section);
fclose($fout);
- mwexec("/usr/bin/scp {$g['tmp_path']}/trafficshaper_section.txt root@{$synchronizetoip}:/tmp/");
- unlink("{$g['tmp_path']}/trafficshaper_section.txt");
+ mwexec("/usr/bin/scp {$g['tmp_path']}/shaper_section.txt root@{$synchronizetoip}:/tmp/");
+ unlink("{$g['tmp_path']}/shaper_section.txt");
}
/* copy configuration to remote host */
mwexec("/usr/bin/ssh {$synchronizetoip} /usr/local/pkg/carp_sync_server.php");
}
}
}
-
+