aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo@ubuntu.com>2013-05-21 17:13:21 +0200
committerMilo Casagrande <milo@ubuntu.com>2013-05-21 17:13:21 +0200
commitf434d718ea14d361aba287250de63ba3104102ad (patch)
tree52e16a93ad17fd81ca5a5aedf027ad8c7f771c74
parent2a46e9470a33c8e14b89c4b867a24b78b40ca54c (diff)
downloadrhodecode-config-f434d718ea14d361aba287250de63ba3104102ad.tar.gz
Removed file perms and ownership setting at the end.
-rw-r--r--scripts/rsync-mirror4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/rsync-mirror b/scripts/rsync-mirror
index 17b6be2..8960e15 100644
--- a/scripts/rsync-mirror
+++ b/scripts/rsync-mirror
@@ -20,7 +20,6 @@
# How to run it:
# sudo rsync-mirror --rescan-repos --api-key KEY
-import atexit
import argparse
import logging
import os
@@ -74,7 +73,6 @@ LINARO_PRIVATE_PATH = os.path.join(PRIVATE_PATH, "linaro-private")
LANDING_TEAMS_PATH = os.path.join(PRIVATE_PATH, "landing-teams")
-@atexit.register
def set_own_perm():
"""Set correct ownership and permission of files and directories."""
import stat
@@ -87,7 +85,7 @@ def set_own_perm():
dir_perm |= stat.S_IROTH | stat.S_IXOTH
# Files are 664, not used at the moment, we keep the same
- # permission os the original.
+ # permission as the original.
file_perm = stat.S_IRUSR | stat.S_IWUSR
file_perm |= stat.S_IRGRP | stat.S_IWGRP
file_perm |= stat.S_IROTH