summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLeon Messner <elon@zwelf.net>2015-10-25 15:59:00 +0100
committerLeon Messner <elon@zwelf.net>2015-10-25 15:59:00 +0100
commit6189aaa14c703d4694652c3ff9fcedbaf6601657 (patch)
treef474d91808359c0cb08c7a3d1e4182ce49c34ede /scripts
parent9f77a2176dc5c9e51c6e3dd9f7d79d297eb755ff (diff)
downloadvyatta-config-mgmt-6189aaa14c703d4694652c3ff9fcedbaf6601657.tar.gz
vyatta-config-mgmt-6189aaa14c703d4694652c3ff9fcedbaf6601657.zip
Bug 584 - Allow sftp as copy and commit-archive location destination.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-commit-push.pl2
-rwxr-xr-xscripts/vyatta-config-mgmt.pl1
2 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-commit-push.pl b/scripts/vyatta-commit-push.pl
index 2264164..1398533 100755
--- a/scripts/vyatta-commit-push.pl
+++ b/scripts/vyatta-commit-push.pl
@@ -85,7 +85,7 @@ foreach my $uri (@uris) {
print " $remote ";
my $rc = 0;
- if ($scheme eq 'scp' ){
+ if ($scheme =~ /^(scp|sftp)$/ ){
$cmd = "curl -s -S -T $tmp_push_file $uri/$save_file";
$rc = system($cmd);
if( $rc >> 8 == 51 ){
diff --git a/scripts/vyatta-config-mgmt.pl b/scripts/vyatta-config-mgmt.pl
index 5ec227c..de08e07 100755
--- a/scripts/vyatta-config-mgmt.pl
+++ b/scripts/vyatta-config-mgmt.pl
@@ -175,6 +175,7 @@ if ($action eq 'valid-uri') {
if ($scheme eq 'tftp') {
} elsif ($scheme eq 'ftp') {
} elsif ($scheme eq 'scp') {
+ } elsif ($scheme eq 'sftp') {
} else {
print "Unsupported URI scheme\n";
exit 1;