Fix possible permissions issue with uploaded files

This commit is contained in:
Robin Dunn
2019-09-18 10:57:33 -07:00
parent 1fddb7115d
commit 47a942ae4f

View File

@@ -702,8 +702,8 @@ def uploadPackage(fileName, options, mask=defaultMask, keep=75):
cmd = 'scp {} {}:{}'.format(fileName, host, uploadDir)
runcmd(cmd)
# Make sure it is readable by all
cmd = 'ssh {} "cd {}; chmod a+r {}"'.format(host, uploadDir, os.path.basename(fileName))
# Make sure it is readable by all, and writable by rbot
cmd = 'ssh {} "cd {}; chmod 644 {}"'.format(host, uploadDir, os.path.basename(fileName))
runcmd(cmd)
if not options.release: