From 66a912d46bb996a3731a59fcb6401530877c7131 Mon Sep 17 00:00:00 2001 From: Thiago Alves Cavalcante Date: Fri, 13 Mar 2020 13:43:51 -0300 Subject: [PATCH] Update rsync command Adds --no-perms --no-owner params to rsync command for maintain compatibility with NFS volumes, else rsync change owner and perms of files synced causing error. --- containers/zammad/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containers/zammad/docker-entrypoint.sh b/containers/zammad/docker-entrypoint.sh index f6dba2e..de641d9 100755 --- a/containers/zammad/docker-entrypoint.sh +++ b/containers/zammad/docker-entrypoint.sh @@ -33,8 +33,8 @@ function check_zammad_ready { if [ "$1" = 'zammad-init' ]; then # install / update zammad test -f "${ZAMMAD_READY_FILE}" && rm "${ZAMMAD_READY_FILE}" - rsync -a --delete --exclude 'public/assets/images/*' --exclude 'storage/fs/*' "${ZAMMAD_TMP_DIR}/" "${ZAMMAD_DIR}" - rsync -a "${ZAMMAD_TMP_DIR}"/public/assets/images/ "${ZAMMAD_DIR}"/public/assets/images + rsync -a --no-perms --no-owner --delete --exclude 'public/assets/images/*' --exclude 'storage/fs/*' "${ZAMMAD_TMP_DIR}/" "${ZAMMAD_DIR}" + rsync -a --no-perms --no-owner "${ZAMMAD_TMP_DIR}"/public/assets/images/ "${ZAMMAD_DIR}"/public/assets/images until (echo > /dev/tcp/"${POSTGRESQL_HOST}"/"${POSTGRESQL_PORT}") &> /dev/null; do echo "zammad railsserver waiting for postgresql server to be ready..."