diff options
author | Andrew Dolgov <[email protected]> | 2024-06-12 09:47:21 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2024-06-12 09:47:21 +0300 |
commit | 9e6684e9277dace834ef10dab21c5b585f291675 (patch) | |
tree | 8ab5698b19cd0a6118f491d4c796bb1d64c3886c | |
parent | bcbbd53a8fbdaa9536e88c8d3c91a57d5c4ab8ed (diff) |
don't ask rsync to set ownership when copying to persistent volume in a container
-rw-r--r-- | .docker/app/startup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.docker/app/startup.sh b/.docker/app/startup.sh index 415c8a75d..b035371fe 100644 --- a/.docker/app/startup.sh +++ b/.docker/app/startup.sh @@ -29,12 +29,12 @@ if [ -z $SKIP_RSYNC_ON_STARTUP ]; then mkdir -p $DST_DIR chown $OWNER_UID:$OWNER_GID $DST_DIR - sudo -u app rsync -a \ + sudo -u app rsync -a --no-owner \ $SRC_DIR/ $DST_DIR/ else chown -R $OWNER_UID:$OWNER_GID $DST_DIR - sudo -u app rsync -a --delete \ + sudo -u app rsync -a --no-owner --delete \ --exclude /cache \ --exclude /lock \ --exclude /feed-icons \ @@ -44,7 +44,7 @@ if [ -z $SKIP_RSYNC_ON_STARTUP ]; then --exclude /themes.local \ $SRC_DIR/ $DST_DIR/ - sudo -u app rsync -a --delete \ + sudo -u app rsync -a --no-owner --delete \ $SRC_DIR/plugins.local/nginx_xaccel \ $DST_DIR/plugins.local/nginx_xaccel fi |