diff options
author | Deepti Kulkarni <deepti@vyatta.com> | 2010-07-23 18:19:16 +0000 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-18 11:42:09 -0700 |
commit | 668bfe342afccb6f1c1288c1d6ae3a65167ffa40 (patch) | |
tree | 0403b653c3c665678537dd3e2c1bc59f66272946 /scripts/vyatta-remote-copy.pl | |
parent | 173b7bad08a6440e8892156cbdcf607475a25b65 (diff) | |
download | vyatta-op-668bfe342afccb6f1c1288c1d6ae3a65167ffa40.tar.gz vyatta-op-668bfe342afccb6f1c1288c1d6ae3a65167ffa40.zip |
Adding 'generate tech-support archive'command
(cherry picked from commit 7d4d9c74b8105a27cc54f55ddb98ea90112e13c6)
Diffstat (limited to 'scripts/vyatta-remote-copy.pl')
-rwxr-xr-x | scripts/vyatta-remote-copy.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-remote-copy.pl b/scripts/vyatta-remote-copy.pl index 93507ad..78959ec 100755 --- a/scripts/vyatta-remote-copy.pl +++ b/scripts/vyatta-remote-copy.pl @@ -54,6 +54,10 @@ if ($flag == 0) { $save_file=$save_file . ".gz" } +if ($flag == 2) +{ + $save_file=$save_file . ".tgz" +} if ($mode eq 'url') { print "Saving output to $save_file\n"; my $rc = system("curl -# -T $tmp_file $save_file"); |