From a32608aa7da0f4453029359758be39c8089b649d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 22 Jul 2019 21:35:03 +0300 Subject: Fix: chmod file before publishing it --- api.py | 1 + curl.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index b0d0a06..4904244 100755 --- a/api.py +++ b/api.py @@ -366,6 +366,7 @@ class Deployer(API): def _publish_via_ssh(self, filename, ssh_target): logging.info('Copying %s to %s', filename, ssh_target) + os.chmod(filename, 0444) argv = [ 'scp', '-q', filename, ssh_target, ] diff --git a/curl.sh b/curl.sh index 5f9fc61..801254c 100755 --- a/curl.sh +++ b/curl.sh @@ -12,7 +12,7 @@ shift 1 case "$cmd" in update-repo) - runcurl -X POST --data-binary @hithere.json \ + runcurl -X POST --data-binary @"$1" \ -H "Content-Type: application/json" \ https://wmf2-vcsworker.vm.liw.fi/updaterepo ;; -- cgit v1.2.1