summaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-07-27 07:12:18 +0200
committerKarel Kočí <cynerd@email.cz>2020-07-27 07:12:18 +0200
commitfde2d6a978c9fdfbb0f4d2cbcffe583e6351fe04 (patch)
tree5b9919361a1e9b8f328e4ae127f4e0689640328d /jobs
parentd50319c7cc48abb8465a245d01b69859bbe719d8 (diff)
downloadlaminar-cnf-fde2d6a978c9fdfbb0f4d2cbcffe583e6351fe04.tar.gz
laminar-cnf-fde2d6a978c9fdfbb0f4d2cbcffe583e6351fe04.tar.bz2
laminar-cnf-fde2d6a978c9fdfbb0f4d2cbcffe583e6351fe04.zip
Replace scp with sftp
Diffstat (limited to 'jobs')
-rwxr-xr-xjobs/turris-updater-conf.run9
1 files changed, 4 insertions, 5 deletions
diff --git a/jobs/turris-updater-conf.run b/jobs/turris-updater-conf.run
index fd2f3e0..509ae52 100755
--- a/jobs/turris-updater-conf.run
+++ b/jobs/turris-updater-conf.run
@@ -9,9 +9,8 @@ echo_stage "Signing"
signify -S -s ~/openwrt-repo.sec -m pkgs/updater.lua
echo_stage "Deploy"
-scp -r pkgs/updater.lua{,.sig} upload:
-ssh upload /bin/sh -e <<EOF
- mkdir -p "/var/www/repo/turris"
- mv updater.lua "/var/www/repo/turris/updater.lua"
- mv updater.lua.sig "/var/www/repo/turris/updater.lua.sig"
+sftp -d - upload <<EOF
+ !mkdir -p /var/www/repo/turris
+ put pkgs/updater.lua /var/www/repo/turris/
+ put pkgs/updater.lua.sig /var/www/repo/turris/
EOF