mirror of
https://github.com/crivion/laranode.git
synced 2026-09-03 06:24:09 +08:00
20 lines
382 B
PHP
20 lines
382 B
PHP
<?php
|
|
|
|
namespace App\Actions\Filemanager;
|
|
|
|
use Illuminate\Support\Facades\Process;
|
|
|
|
class EnsurePermissionsAction
|
|
{
|
|
|
|
public function execute(string $path, string $systemUser): void
|
|
{
|
|
Process::run([
|
|
'sudo',
|
|
config('laranode.laranode_bin_path') . '/laranode-file-permissions.sh',
|
|
$path,
|
|
$systemUser,
|
|
]);
|
|
}
|
|
}
|