Commit 42db6120 authored by David Cameron's avatar David Cameron

add common to required blocks, mapping is required if root

parent 1ef5653f
......@@ -619,7 +619,10 @@ Return error if the presence of one value implies one of another
sub check_completeness() {
my $config=shift;
my @required=("arex", "infosys", "lrms");
my @required=("common", "arex", "infosys", "lrms");
# mapping block is required if running as root
push @required, "mapping" if getpwnam(getpwuid($<)) == 0;
my ($validparams, $validblocks, $multiple, $novalueparams) = validconfparams();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment