From 9ae6155eb43ca7f6bd6b7d49d3e85544367e5622 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 11 Jun 2019 14:53:13 +0200 Subject: Fix rsync permission issue --- rep-publish | 4 ++-- stage | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rep-publish b/rep-publish index 8db26e0..6e555a4 100755 --- a/rep-publish +++ b/rep-publish @@ -29,5 +29,5 @@ if [ -z "$host" ]; then fi shift -rsync -v -rlpt -c --exclude '.*' --copy-unsafe-links --prune-empty-dirs \ ---delete-after $* $dir/ $host +rsync -v -rltO -c --chmod=ugo=rwX --exclude '.*' --copy-unsafe-links \ +--prune-empty-dirs --delete-after $* $dir/ $host diff --git a/stage b/stage index 460a7ae..f861578 100755 --- a/stage +++ b/stage @@ -210,7 +210,7 @@ function sync_dist () # [] info "Press Enter to start distribution upload to $d" read - rsync -v -rlpt -c --copy-unsafe-links --prune-empty-dirs \ + rsync -v -rltO -c --chmod=ugo=rwX --copy-unsafe-links --prune-empty-dirs \ $rsync_ops "$@" "$s/" "$d/" } -- cgit v1.1