From 9ef08d2dc2424068664cec9e2c2c67d5bd5db865 Mon Sep 17 00:00:00 2001 From: Alex Junginger Date: Wed, 18 Nov 2026 09:25:08 +0100 Subject: [PATCH] [SHOPWARE] Apply remote umask when uploading the release deploy:update_code uploads the local checkout with rsync -a, which copies the local file modes. CI runners usually check out with umask 0000, so every file in the release ends up 666 and every directory 777, i.e. world writable. Use --no-perms --chmod=ugo=rwX so new files get the remote user's umask, like the default git-based update_code does. Executable bits are kept. Updated docs by running bin/docgen --- docs/recipe/shopware.md | 6 +++--- recipe/shopware.php | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/recipe/shopware.md b/docs/recipe/shopware.md index ebdae6ea3..0466db144 100644 --- a/docs/recipe/shopware.md +++ b/docs/recipe/shopware.md @@ -293,7 +293,7 @@ This task is group task which contains next tasks: ### sw-build-without-db\:get-remote-config {#sw-build-without-db-get-remote-config} -[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L180) +[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L183) @@ -301,7 +301,7 @@ This task is group task which contains next tasks: ### sw-build-without-db\:build {#sw-build-without-db-build} -[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L197) +[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L200) @@ -309,7 +309,7 @@ This task is group task which contains next tasks: ### sw-build-without-db {#sw-build-without-db} -[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L201) +[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L204) diff --git a/recipe/shopware.php b/recipe/shopware.php index 3d383007a..f8dd98ded 100644 --- a/recipe/shopware.php +++ b/recipe/shopware.php @@ -173,6 +173,9 @@ function getPlugins(): array '--exclude=.git', '--exclude=deploy.php', '--exclude=node_modules', + // Apply the remote umask instead of copying the local modes (CI checkouts are often 666/777) + '--no-perms', + '--chmod=ugo=rwX', ], ]); });