From af9de284d0a66ebbcb9ea6950af7da70f2b33581 Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Fri, 20 Nov 2026 10:08:36 +0000 Subject: [PATCH] new design with nice layout --- deploy.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/deploy.php b/deploy.php index a90012a..eda6162 100644 --- a/deploy.php +++ b/deploy.php @@ -236,16 +236,18 @@ desc('Prepare Laravel writable directories'); task('absdev:permissions', function (): void { $path = escapeshellarg(absdevReleasePath()); + $script = 'set -eu; ' + . 'dir=' . $path . '/bootstrap/cache; ' + . 'mkdir -p "$dir"; ' + . 'owner=$(stat -c %u ' . $path . '); ' + . 'chown -R "$owner":33 "$dir"; ' + . 'chmod -R ug+rwX "$dir"; ' + . 'chmod g+s "$dir"'; + run( absdevCompose() . ' exec -T -u root php sh -c ' - . escapeshellarg( - 'mkdir -p ' . $path . '/bootstrap/cache' - . ' && chown -R www-data:www-data ' - . $path . '/bootstrap/cache' - . ' && chmod -R u+rwX,g+rwX ' - . $path . '/bootstrap/cache' - ) + . escapeshellarg($script) ); run( @@ -256,6 +258,8 @@ task('absdev:permissions', function (): void { . ' && test -w ' . $path . '/bootstrap/cache' ) ); + + writeln('Laravel permissions verified.'); });