From 73796be56a54077fade3922f6202990bb3649dff Mon Sep 17 00:00:00 2001 From: ghermans Date: Thu, 31 Dec 2020 18:43:16 +0100 Subject: [PATCH] Possible fix for #4371 --- public/installer/AdminConfig.php | 2 +- public/installer/MigrationRun.php | 3 ++- public/installer/Seeder.php | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/public/installer/AdminConfig.php b/public/installer/AdminConfig.php index 2172f3591..48c377488 100755 --- a/public/installer/AdminConfig.php +++ b/public/installer/AdminConfig.php @@ -101,7 +101,7 @@ $data = array(); $data['support_error'] = 'Bagisto currently support MySQL only. Press OK to still continue or change you DB connection to MySQL'; } - $storage_output = exec('cd ../.. && php artisan storage:link 2>&1'); + $storage_output = exec('cd ../.. && '.$phpbin.' artisan storage:link 2>&1'); // if there are no errors process our form, then return a message // show a message of success and provide a true success variable diff --git a/public/installer/MigrationRun.php b/public/installer/MigrationRun.php index 3d611769a..8ac63187f 100755 --- a/public/installer/MigrationRun.php +++ b/public/installer/MigrationRun.php @@ -1,12 +1,13 @@ &1'; -$seeder = 'cd ../.. && php artisan db:seed 2>&1'; -$publish = 'cd ../.. && php artisan vendor:publish --all --force 2>&1'; +$key = 'cd ../.. && '.$phpbin.' artisan key:generate 2>&1'; +$seeder = 'cd ../.. && '.$phpbin.' artisan db:seed 2>&1'; +$publish = 'cd ../.. && '.$phpbin.' artisan vendor:publish --all --force 2>&1'; $key_output = exec($key, $data['key'], $data['key_results']); $seeder_output = exec($seeder, $data['seeder'], $data['seeder_results']);