Commit 14927539 authored by Nigel Kukard's avatar Nigel Kukard

Merge branch 'vhostnamefix' into 'master'

Exclude vhost config files with .bak extension for nginx

See merge request !9
parents c5baff90 bbea8719
Pipeline #933 passed with stages
in 3 minutes and 34 seconds
......@@ -47,7 +47,7 @@ package AWIT::CertMaster;
use strict;
use warnings;
our $VERSION = '1.05';
our $VERSION = '1.06';
BEGIN {
......@@ -346,6 +346,15 @@ sub webserverCheckNginx
foreach my $vhostName (keys %{$vhostConfig}) {
my $vhost = $vhostConfig->{$vhostName};
# Skip over a few things
if (
# Skip over backup files
$vhostName =~ /\.bak$/
) {
delete($vhostConfig->{$vhostName});
next;
}
$self->logger("INFO","NGINX: Processing vhost '%s'",$vhostName);
# Open config file
## no critic (RequireBriefOpen)
......@@ -1782,7 +1791,7 @@ use Getopt::Long;
my $NAME = "AWIT-CertMaster";
our $VERSION = "1.1.8";
our $VERSION = "1.1.9";
......
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