Skip to content

Commit 08929a8

Browse files
committed
fix: simplify public_html symlink creation in install command
1 parent c782220 commit 08929a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/Console/Commands/Install.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use App\Models\Pengelola;
66
use App\Models\Template;
77
use Illuminate\Console\Command;
8-
use Symfony\Component\Process\Process;
98

109
use function Laravel\Prompts\select;
1110
use function Laravel\Prompts\text;
@@ -190,9 +189,8 @@ public function handle()
190189
$this->call('simpede:cache');
191190
$is_public_html = select('Apakah Anda menggunakan public_html sebagai folder publik?', ['Ya', 'Tidak'], 'Ya');
192191
if ($is_public_html == 'Ya') {
193-
$this->info('Membuat symlink public_html');
194-
$process = new Process(['ln', '-s', base_path('public_html'), public_path()]);
195-
$process->run();
192+
symlink(public_path(), base_path('public_html'));
193+
$this->info('Membuat symlink public_html ke public');
196194
}
197195
$this->info('Membuat storage symlink');
198196
$this->call('storage:link');

0 commit comments

Comments
 (0)