diff options
-rwxr-xr-x | templates/turris3x.run | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/turris3x.run b/templates/turris3x.run index 668419b..d3cc5bc 100755 --- a/templates/turris3x.run +++ b/templates/turris3x.run @@ -28,10 +28,11 @@ make -j4 echo_stage "Sign" ./staging_dir/host/bin/usign -S -s ~/openwrt-repo.key -m "bin/$ARCH/packages/base/Packages" -exit 0 # Disable deploy for now (ssh is not configured yet) echo_stage "Deploy" -scp -r "bin/$ARCH/packages/base" cynerd.cz:/tmp/deploy-turris3x-$BOARD -ssh cynerd.cz /bin/sh -ex <<EOF +ssh -i ~/upload.ssh.key upload@cynerd.cz rm -rf "deploy-turris3x-$BOARD" +scp -i ~/upload.ssh.key -r "bin/$ARCH/packages/base" upload@cynerd.cz:deploy-turris3x-$BOARD +exit 0 # Disable deploy for now +ssh -i ~/upload.ssh.key upload@cynerd.cz /bin/sh -ex <<EOF rm -rf /var/www/repo/turris3x - mv /tmp/deploy-turris3x-$BOARD /var/www/repo/turris3x/$BOARD + mv deploy-turris3x-$BOARD /var/www/repo/turris3x/$BOARD EOF |