mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Terminate execution if config file is missing
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
bcd795c339
commit
3d90623154
1 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,11 @@ function config_load() {
|
||||||
if (!$path) {
|
if (!$path) {
|
||||||
$path = "/etc/aurweb/config";
|
$path = "/etc/aurweb/config";
|
||||||
}
|
}
|
||||||
|
if (file_exists($path)) {
|
||||||
$AUR_CONFIG = parse_ini_file($path, true, INI_SCANNER_RAW);
|
$AUR_CONFIG = parse_ini_file($path, true, INI_SCANNER_RAW);
|
||||||
|
} else {
|
||||||
|
die("aurweb config file not found");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue