summaryrefslogtreecommitdiff
path: root/templates/turris.run
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-07-29 13:44:03 +0200
committerKarel Kočí <cynerd@email.cz>2020-07-29 13:44:03 +0200
commita5ea8f08f0e89ed6166e662f1f457b842953a27d (patch)
treed0d6420bf6608ffb4847a2cb7998767951bea391 /templates/turris.run
parente375a0e9347e29181adb2e5e5f021ff97d345426 (diff)
downloadlaminar-cnf-a5ea8f08f0e89ed6166e662f1f457b842953a27d.tar.gz
laminar-cnf-a5ea8f08f0e89ed6166e662f1f457b842953a27d.tar.bz2
laminar-cnf-a5ea8f08f0e89ed6166e662f1f457b842953a27d.zip
Another try in using sftp
Diffstat (limited to 'templates/turris.run')
-rwxr-xr-xtemplates/turris.run4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/turris.run b/templates/turris.run
index 01ff8e3..19295a5 100755
--- a/templates/turris.run
+++ b/templates/turris.run
@@ -69,7 +69,9 @@ $make package/index BUILD_KEY=~/openwrt-repo.sec
echo_stage "Deploy"
ssh upload rm -rf "deploy-turris-$ANIMAL-$BOARD"
-sftp -r "bin/packages/$ARCH/personal" upload:"deploy-turris-$ANIMAL-$BOARD"
+sftp -d - upload <<EOF
+ put -R "./bin/packages/$ARCH/personal" "deploy-turris-$ANIMAL-$BOARD"
+EOF
ssh upload /bin/sh -e "$ANIMAL" "$BOARD" <<"EOF"
mkdir -p "/var/www/repo/turris/$1"
rm -rf "/var/www/repo/turris/$1/$2"