Commit 976f7523 authored by Nigel Kukard's avatar Nigel Kukard

Merge branch 'nkupdates3' into 'master'

Load template configuration with local admin access

See merge request !25
parents b36a02e0 1387839c
Pipeline #488 passed with stages
in 1 minute
......@@ -322,6 +322,24 @@ sub cmd_connect
my $server = wiaflos::client::fakeserver->new();
$server->{'inifile'} = \%config;
# Template engine config
my @template_params = (
my $templates;
foreach my $param (@template_params) {
$templates->{$param} = $config{'templates'}{$param} if (defined($config{'templates'}{$param}));
if (!defined($templates->{'path'})) {
print(STDERR "ERROR: Under 'templates' section, required parameter 'path' not found");
exit 1;
$server->{'template_config'} = $templates;
# Init authentication
# Init config
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment