From 29f39fb44062f3e2ac303da9e0e6225ea244b5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sat, 24 Oct 2026 14:23:26 +0200 Subject: [PATCH] fix: the release links fileadmin with a relative symlink The vhosts answer 403 for files behind the absolute symlink (tested on staging); Deployer's shared dirs are relative and work. The task now also checks that the link resolves. Co-Authored-By: Claude Opus 5.5 --- deploy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy.php b/deploy.php index e507a64..96dc7f2 100644 --- a/deploy.php +++ b/deploy.php @@ -160,7 +160,9 @@ task('typo3:cache:flush', function () { desc('Link the production fileadmin into the release'); task('typo3:fileadmin', function () { run('test -d {{fileadmin_path}}'); - run('ln -sfn {{fileadmin_path}} {{release_path}}/{{typo3/public_dir}}/fileadmin'); + // Relative (-r), like Deployer's shared dirs: the vhosts answer 403 for an absolute symlink here + run('ln -sfnr {{fileadmin_path}} {{release_path}}/{{typo3/public_dir}}/fileadmin'); + run('test -d {{release_path}}/{{typo3/public_dir}}/fileadmin/user_upload'); }); desc('Deploys TYPO3 13');