summaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-07-29 13:44:03 +0200
committerKarel Kočí <cynerd@email.cz>2020-07-29 13:44:03 +0200
commita5ea8f08f0e89ed6166e662f1f457b842953a27d (patch)
treed0d6420bf6608ffb4847a2cb7998767951bea391 /jobs
parente375a0e9347e29181adb2e5e5f021ff97d345426 (diff)
downloadlaminar-cnf-a5ea8f08f0e89ed6166e662f1f457b842953a27d.tar.gz
laminar-cnf-a5ea8f08f0e89ed6166e662f1f457b842953a27d.tar.bz2
laminar-cnf-a5ea8f08f0e89ed6166e662f1f457b842953a27d.zip
Another try in using 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 5ab91e6..03c8ac0 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"
-sftp -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"
+ssh upload mkdir -p "/var/www/repo/turris"
+sftp -b - <<EOF
+ put pkgs/updater.lua /var/www/repo/turris/updater.lua
+ put pkgs/updater.lua.sig /var/www/repo/turris/updater.lua.sig
EOF