WebWizard: Require storage directory

This commit is contained in:
Johannes Meyer 2021-06-22 12:11:10 +02:00
parent 23ee95e45f
commit f72a5fbe89
1 changed files with 9 additions and 0 deletions

View File

@ -728,6 +728,15 @@ class WebWizard extends Wizard implements SetupWizard
$set->add($dbRequire); $set->add($dbRequire);
$set->add(new ConfigDirectoryRequirement(array(
'condition' => Icinga::app()->getStorageDir(),
'title' => mt('setup', 'Read- and writable storage directory'),
'description' => mt(
'setup',
'The Icinga Web 2 storage directory defaults to "/var/lib/icingaweb2", if' .
' not explicitly set in the environment variable "ICINGAWEB_STORAGEDIR".'
)
)));
$set->add(new ConfigDirectoryRequirement(array( $set->add(new ConfigDirectoryRequirement(array(
'condition' => Icinga::app()->getConfigDir(), 'condition' => Icinga::app()->getConfigDir(),