diff options
author | Karel Kočí <cynerd@email.cz> | 2020-07-27 07:12:18 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-07-27 07:12:18 +0200 |
commit | fde2d6a978c9fdfbb0f4d2cbcffe583e6351fe04 (patch) | |
tree | 5b9919361a1e9b8f328e4ae127f4e0689640328d /templates/turris.run | |
parent | d50319c7cc48abb8465a245d01b69859bbe719d8 (diff) | |
download | laminar-cnf-fde2d6a978c9fdfbb0f4d2cbcffe583e6351fe04.tar.gz laminar-cnf-fde2d6a978c9fdfbb0f4d2cbcffe583e6351fe04.tar.bz2 laminar-cnf-fde2d6a978c9fdfbb0f4d2cbcffe583e6351fe04.zip |
Replace scp with sftp
Diffstat (limited to 'templates/turris.run')
-rwxr-xr-x | templates/turris.run | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/turris.run b/templates/turris.run index 98d489f..9392eee 100755 --- a/templates/turris.run +++ b/templates/turris.run @@ -63,10 +63,10 @@ echo_stage "Generate index and sign" $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 -ssh upload /bin/sh -e <<EOF - mkdir -p "/var/www/repo/turris/$ANIMAL" - rm -rf "/var/www/repo/turris/$ANIMAL/$BOARD" - mv deploy-turris-$ANIMAL-$BOARD "/var/www/repo/turris/$ANIMAL/$BOARD" +sftp -d - upload <<EOF + !rm -rf "deploy-turris-$ANIMAL-$BOARD" + put "bin/packages/$ARCH/personal" "deploy-turris-$ANIMAL-$BOARD" + !mkdir -p "/var/www/repo/turris/$ANIMAL" + !rm -rf "/var/www/repo/turris/$ANIMAL/$BOARD" + mv "deploy-turris-$ANIMAL-$BOARD" "/var/www/repo/turris/$ANIMAL/$BOARD" EOF |