1
0
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:
Franz Liedke
2015-05-08 20:37:07 +02:00
parent 00bf235809
commit 97bab21c1d
3 changed files with 16 additions and 1 deletions

View File

@@ -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'));
}
/**