From 9e6684e9277dace834ef10dab21c5b585f291675 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 12 Jun 2024 09:47:21 +0300 Subject: [PATCH] don't ask rsync to set ownership when copying to persistent volume in a container --- .docker/app/startup.sh | 6 +++--- 1 file 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