summaryrefslogtreecommitdiff
path: root/scripts/vyatta-commit-push.pl
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/vyatta-commit-push.pl
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/vyatta-commit-push.pl')
-rwxr-xr-xscripts/vyatta-commit-push.pl2
1 files changed, 1 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 ){