From 6189aaa14c703d4694652c3ff9fcedbaf6601657 Mon Sep 17 00:00:00 2001 From: Leon Messner Date: Sun, 25 Oct 2015 15:59:00 +0100 Subject: Bug 584 - Allow sftp as copy and commit-archive location destination. --- scripts/vyatta-commit-push.pl | 2 +- scripts/vyatta-config-mgmt.pl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') 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; -- cgit v1.2.3