new design with nice layout

This commit is contained in:
Mark Gregory
2026-11-20 10:08:36 +00:00
parent 3c492e78c5
commit af9de284d0
+11 -7
View File
@@ -236,16 +236,18 @@ desc('Prepare Laravel writable directories');
task('absdev:permissions', function (): void { task('absdev:permissions', function (): void {
$path = escapeshellarg(absdevReleasePath()); $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( run(
absdevCompose() absdevCompose()
. ' exec -T -u root php sh -c ' . ' exec -T -u root php sh -c '
. escapeshellarg( . escapeshellarg($script)
'mkdir -p ' . $path . '/bootstrap/cache'
. ' && chown -R www-data:www-data '
. $path . '/bootstrap/cache'
. ' && chmod -R u+rwX,g+rwX '
. $path . '/bootstrap/cache'
)
); );
run( run(
@@ -256,6 +258,8 @@ task('absdev:permissions', function (): void {
. ' && test -w ' . $path . '/bootstrap/cache' . ' && test -w ' . $path . '/bootstrap/cache'
) )
); );
writeln('<info>Laravel permissions verified.</info>');
}); });