ArielGlenn has uploaded a new change for review.
https://gerrit.wikimedia.org/r/275805
Change subject: explicitly set perms on the empty directory for rsync deletes
......................................................................
explicitly set perms on the empty directory for rsync deletes
If we don't do this, we may wind up with overly restrictive
perms on the rsynced directories on the target filesystem.
Change-Id: Ia060d14c6c16d68ec207639637beb29c498b641b
---
M tools/mirrors/wmfdumpsmirror.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/dumps
refs/changes/05/275805/1
diff --git a/tools/mirrors/wmfdumpsmirror.py b/tools/mirrors/wmfdumpsmirror.py
index 4571e1f..17b11a4 100644
--- a/tools/mirrors/wmfdumpsmirror.py
+++ b/tools/mirrors/wmfdumpsmirror.py
@@ -273,7 +273,7 @@
if self.emptydirpath is None:
self.emptydirpath = maketempdir()
-
+ os.chmod(self.emptydirpath, 0755)
excludes = ["--exclude=/{0}/".format(dirname) for dirname in
project_dirs_rsynced]
command = ["/usr/bin/rsync", "-a", "--delete"]
command.extend(excludes)
--
To view, visit https://gerrit.wikimedia.org/r/275805
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia060d14c6c16d68ec207639637beb29c498b641b
Gerrit-PatchSet: 1
Gerrit-Project: operations/dumps
Gerrit-Branch: ariel
Gerrit-Owner: ArielGlenn <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits