Skip to content
Snippets Groups Projects
Commit 80bc62a4 authored by hahn's avatar hahn
Browse files

ci-webgui add check for more keys in the config

parent d094ee15
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,19 @@ $aParams = array();
}
}
// check required keys in the config
foreach (array(
'auth',
'hooks',
'installPackages',
'lang',
'phases',
'projects',
) as $sKey){
if (!array_key_exists($sKey, $aConfig)){
$aErrors[]="* missing key directory [$sKey] in config\n";
}
}
if (count($aErrors)){
die("FATAL ERROR on config.<br>" . implode("<br>\n", $aErrors));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment