From 7142eca7eecc1551e0fec39f61f569246e263953 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 24 Oct 2018 00:16:56 +0300 Subject: Fix rsync permission-related options in bpkg-rep-publish script --- bpkg-rep/publish.in | 6 +++--- 1 file 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 -- cgit v1.1