summaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'jobs')
-rwxr-xr-xjobs/turris-updater-conf.run9
1 files changed, 5 insertions, 4 deletions
diff --git a/jobs/turris-updater-conf.run b/jobs/turris-updater-conf.run
index 509ae52..5ab91e6 100755
--- a/jobs/turris-updater-conf.run
+++ b/jobs/turris-updater-conf.run
@@ -9,8 +9,9 @@ echo_stage "Signing"
signify -S -s ~/openwrt-repo.sec -m pkgs/updater.lua
echo_stage "Deploy"
-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/
+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"
EOF