summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapi.py1
-rwxr-xr-xcurl.sh2
2 files changed, 2 insertions, 1 deletions
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
;;