mirror of
https://github.com/flarum/core.git
synced 2025-07-24 02:01:19 +02:00
Copy the config.php file upon installation.
This allows us to know whether Flarum is already installed, so that we can disable certain service providers when it isn't. This should fix #67.
This commit is contained in:
@@ -47,6 +47,9 @@ class InstallCommand extends Command {
|
||||
$this->call('db:seed', ['--class' => 'Flarum\Core\Seeders\ConfigTableSeeder']);
|
||||
$this->call('db:seed', ['--class' => 'Flarum\Core\Seeders\GroupsTableSeeder']);
|
||||
$this->call('db:seed', ['--class' => 'Flarum\Core\Seeders\PermissionsTableSeeder']);
|
||||
|
||||
// Create config file so that we know Flarum is installed
|
||||
copy(base_path('../config.example.php'), base_path('../config.php'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user