summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-08-26 19:23:05 +0200
committerKarel Kočí <cynerd@email.cz>2018-08-26 19:23:05 +0200
commit0d1aacddfe40a053a5e9774f561b9f64efe3592a (patch)
tree83c6688a4a6c328c4ef7ced172d5f59aef73ce27 /templates
parente21f6540bf63df98d9ce204bc97f4f5931fab8ec (diff)
downloadlaminar-cnf-0d1aacddfe40a053a5e9774f561b9f64efe3592a.tar.gz
laminar-cnf-0d1aacddfe40a053a5e9774f561b9f64efe3592a.tar.bz2
laminar-cnf-0d1aacddfe40a053a5e9774f561b9f64efe3592a.zip
turris3x: enable copy to server
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/turris3x.run9
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