diff options
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 |