new design with nice layout
This commit is contained in:
+11
-7
@@ -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>');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user