Added die to config.
This commit is contained in:
1 parent
b8c0edadf1
commit
bc65c8c480
2 files changed
+12
No files matched your search
@@ -111,6 +111,14 @@ our $CONF = Parser::Config->new("auto.conf") or err(1, "Failed to parse configur
|
||||
our %SETTINGS = $CONF->parse or err(1, "Failed to parse configuration file!", 1);
|
||||
println " Success";
|
||||
|
||||
if (conf_get("die")) {
|
||||
if ((conf_get("die"))[0][0] == 1) {
|
||||
println "!!! You didn't read the whole config.";
|
||||
println "!!! Insert new user then try again.";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
# Check for required configuration values.
|
||||
my @REQCVALS = qw(locale expire_logs server fantasy_pf);
|
||||
foreach my $REQCVAL (@REQCVALS) {
|
||||
|
||||
@@ -73,3 +73,7 @@ fantasy_pf "!";
|
||||
|
||||
# Module autoload.
|
||||
module "HelloChan";
|
||||
|
||||
# Lets see if you read the config.
|
||||
# Change this to 0 or remove it.
|
||||
die 1;
|
||||
Reference in new issue
Block a user