This commit is contained in:
Adrien MALINGREY 2023-04-11 18:47:24 +02:00
parent c2d62a5ccb
commit ba3c1e1b8a

View File

@ -6,10 +6,10 @@ if (! function_exists('str_ends_with')) {
}
}
if (!file_exists("scans")) mkdir("scans");
if (!file_exists("site")) mkdir("site");
if (!file_exists(__DIR__."/scans")) mkdir(__DIR__."/scans");
if (!file_exists(__DIR__."/site")) mkdir(__DIR__."/site");
foreach (scandir(__DIR__."/confs/") as $file) {
foreach (scandir(__DIR__."/confs") as $file) {
if (str_ends_with($file, ".yaml")) {
$site = str_replace(".yaml", "", $file);
$yaml = yaml_parse_file(__DIR__."/confs/$file");