Commit 70e9b995 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Added full paths to system commands, bumped version

parent 14927539
Pipeline #944 passed with stages
in 3 minutes and 4 seconds
...@@ -47,7 +47,7 @@ package AWIT::CertMaster; ...@@ -47,7 +47,7 @@ package AWIT::CertMaster;
use strict; use strict;
use warnings; use warnings;
our $VERSION = '1.06'; our $VERSION = '1.07';
BEGIN { BEGIN {
...@@ -685,7 +685,7 @@ sub _webserverReloadApache ...@@ -685,7 +685,7 @@ sub _webserverReloadApache
# Check if the configtest passes # Check if the configtest passes
if ($self->{'live'}) { if ($self->{'live'}) {
# Check if Apache config is OK # Check if Apache config is OK
system('apachectl configtest > /dev/null 2>&1'); system('/usr/sbin/apachectl configtest > /dev/null 2>&1');
if ($? >> 8) { if ($? >> 8) {
$self->logger("ERROR","APACHE: Failed configtest, reload NOT done"); $self->logger("ERROR","APACHE: Failed configtest, reload NOT done");
return $self; return $self;
...@@ -694,7 +694,7 @@ sub _webserverReloadApache ...@@ -694,7 +694,7 @@ sub _webserverReloadApache
$self->logger("INFO","APACHE: Successful configtest"); $self->logger("INFO","APACHE: Successful configtest");
# Reload Apache config # Reload Apache config
system('service apache reload > /dev/null 2>&1'); system('/usr/sbin/service apache reload > /dev/null 2>&1');
if ($? >> 8) { if ($? >> 8) {
$self->logger("ERROR","APACHE: Failed reload"); $self->logger("ERROR","APACHE: Failed reload");
return $self; return $self;
...@@ -717,7 +717,7 @@ sub _webserverReloadNginx ...@@ -717,7 +717,7 @@ sub _webserverReloadNginx
# Check if the configtest passes # Check if the configtest passes
if ($self->{'live'}) { if ($self->{'live'}) {
# Check if Nginx config is OK # Check if Nginx config is OK
system('service nginx configtest > /dev/null 2>&1'); system('/usr/sbin/service nginx configtest > /dev/null 2>&1');
if ($? >> 8) { if ($? >> 8) {
$self->logger("ERROR","NGINX: Failed configtest, reload NOT done"); $self->logger("ERROR","NGINX: Failed configtest, reload NOT done");
return $self; return $self;
...@@ -726,7 +726,7 @@ sub _webserverReloadNginx ...@@ -726,7 +726,7 @@ sub _webserverReloadNginx
$self->logger("INFO","NGINX: Successful configtest"); $self->logger("INFO","NGINX: Successful configtest");
# Reload Nginx config # Reload Nginx config
system('service nginx reload > /dev/null 2>&1'); system('/usr/sbin/service nginx reload > /dev/null 2>&1');
if ($? >> 8) { if ($? >> 8) {
$self->logger("ERROR","NGINX: Failed reload"); $self->logger("ERROR","NGINX: Failed reload");
return $self; return $self;
...@@ -1791,7 +1791,7 @@ use Getopt::Long; ...@@ -1791,7 +1791,7 @@ use Getopt::Long;
my $NAME = "AWIT-CertMaster"; my $NAME = "AWIT-CertMaster";
our $VERSION = "1.1.9"; our $VERSION = "1.1.10";
......
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