diff options
author | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-07-22 21:35:03 +0300 |
---|---|---|
committer | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-07-22 21:35:03 +0300 |
commit | a32608aa7da0f4453029359758be39c8089b649d (patch) | |
tree | 5610e758cb7c0ec9b13ab5430499ec501d152185 | |
parent | 8ad9d24459f63cc2e6b46cd13862695b2f87bc9a (diff) | |
download | wmf-ci-arch-a32608aa7da0f4453029359758be39c8089b649d.tar.gz |
Fix: chmod file before publishing it
-rwxr-xr-x | api.py | 1 | ||||
-rwxr-xr-x | curl.sh | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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, ] @@ -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 ;; |