Commit 51b8e785 authored by Nicolas Widart's avatar Nicolas Widart

Use the environment variable as a check

parent 81d42d8d
...@@ -5,7 +5,6 @@ use Illuminate\Console\Command; ...@@ -5,7 +5,6 @@ use Illuminate\Console\Command;
use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\Foundation\Application;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Schema;
use Modules\Core\Services\Composer; use Modules\Core\Services\Composer;
class InstallCommand extends Command class InstallCommand extends Command
...@@ -376,7 +375,7 @@ class InstallCommand extends Command ...@@ -376,7 +375,7 @@ class InstallCommand extends Command
*/ */
private function checkIfInstalled() private function checkIfInstalled()
{ {
return Schema::hasTable('users'); return getenv('DB_USERNAME') ? true : false;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment