summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-07-29 12:56:57 +0200
committerKarel Kočí <cynerd@email.cz>2020-07-29 12:56:57 +0200
commite375a0e9347e29181adb2e5e5f021ff97d345426 (patch)
treea58bdd528cda31cd7818e8ad3a11f23c9386814b
parent563c1a29aef559be4742dfc1db1ff26915d11d8f (diff)
downloadlaminar-cnf-e375a0e9347e29181adb2e5e5f021ff97d345426.tar.gz
laminar-cnf-e375a0e9347e29181adb2e5e5f021ff97d345426.tar.bz2
laminar-cnf-e375a0e9347e29181adb2e5e5f021ff97d345426.zip
turris: fix use of scp to sftp
-rwxr-xr-xtemplates/turris.run2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/turris.run b/templates/turris.run
index dfeaf06..01ff8e3 100755
--- a/templates/turris.run
+++ b/templates/turris.run
@@ -69,7 +69,7 @@ $make package/index BUILD_KEY=~/openwrt-repo.sec
echo_stage "Deploy"
ssh upload rm -rf "deploy-turris-$ANIMAL-$BOARD"
-scp -r "bin/packages/$ARCH/personal" upload:"deploy-turris-$ANIMAL-$BOARD"
+sftp -r "bin/packages/$ARCH/personal" upload:"deploy-turris-$ANIMAL-$BOARD"
ssh upload /bin/sh -e "$ANIMAL" "$BOARD" <<"EOF"
mkdir -p "/var/www/repo/turris/$1"
rm -rf "/var/www/repo/turris/$1/$2"