mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Allow reapply yaml config via env (#14100)
REAPPLY_YAML_CONFIG=1 This will overwrite all settings set in yaml files.
This commit is contained in:
@@ -57,7 +57,7 @@ class ConfigSeeder extends Seeder
|
|||||||
return; // nothing to do
|
return; // nothing to do
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\App\Models\Config::exists()) {
|
if (\App\Models\Config::exists() && ! getenv('REAPPLY_YAML_CONFIG')) {
|
||||||
if (! app()->runningInConsole() || ! $this->command->confirm(trans('commands.db:seed.existing_config'), false)) {
|
if (! app()->runningInConsole() || ! $this->command->confirm(trans('commands.db:seed.existing_config'), false)) {
|
||||||
return; // don't overwrite existing settings.
|
return; // don't overwrite existing settings.
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user