mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 02:48:37 +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:
parent
94d435eff1
commit
a598b52fee
@ -57,7 +57,7 @@ class ConfigSeeder extends Seeder
|
||||
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)) {
|
||||
return; // don't overwrite existing settings.
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user