aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-10-24 00:16:56 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-24 00:16:56 +0300
commit7142eca7eecc1551e0fec39f61f569246e263953 (patch)
tree5a5b96a6450d6446373822e80e39d67527470c13
parent81b0bf513bc76cbc8a797d9e4073f349af72837a (diff)
Fix rsync permission-related options in bpkg-rep-publish script
-rw-r--r--bpkg-rep/publish.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/bpkg-rep/publish.in b/bpkg-rep/publish.in
index f3f3ba0..a0930c1 100644
--- a/bpkg-rep/publish.in
+++ b/bpkg-rep/publish.in
@@ -304,13 +304,13 @@ for d in "${destinations[@]}"; do
# -r (recursive)
# -l (copy symlinks and symlinks)
- # -p (preserve perms)
# -t (preserve timestamps)
# -O (omit dir timestamps)
#
# -c (use checksum)
# -e (remote shell command)
#
+ # --chmod=ugo=rwX (give new files the destination-default permissions)
# --safe-links (ignore symlinks pointing outside the tree)
# --delay-updates (first upload all files on the side then move)
# --prune-empty-dirs (remove empty dirs)
@@ -318,8 +318,8 @@ for d in "${destinations[@]}"; do
#
# We also exclude hiddent files (start with dot).
#
- run rsync -v -rlptO -c --safe-links --delay-updates --exclude '.*' \
---prune-empty-dirs --delete-after -e "ssh ${ssh_options[*]}" \
+ run rsync -v -rltO -c --chmod=ugo=rwX --safe-links --delay-updates \
+--exclude '.*' --prune-empty-dirs --delete-after -e "ssh ${ssh_options[*]}" \
"${rsync_options[@]}" "$repo_dir/$repo_ver/" "$d/" >&2
done