Commit bbea8719 authored by Nigel Kukard's avatar Nigel Kukard

Exclude vhost config files with .bak extension for nginx

parent c5baff90
Pipeline #931 passed with stages
in 2 minutes and 50 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