Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nigel Kukard
awit-certmaster
Commits
70e9b995
Commit
70e9b995
authored
Jan 25, 2017
by
Nigel Kukard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added full paths to system commands, bumped version
parent
14927539
Pipeline
#944
passed with stages
in 3 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
awit-certmaster
awit-certmaster
+6
-6
No files found.
awit-certmaster
View file @
70e9b995
...
...
@@ -47,7 +47,7 @@ package AWIT::CertMaster;
use
strict
;
use
warnings
;
our
$
VERSION
=
'1.0
6
'
;
our
$
VERSION
=
'1.0
7
'
;
BEGIN
{
...
...
@@ -685,7 +685,7 @@ sub _webserverReloadApache
#
Check
if
the
configtest
passes
if
($
self
->{
'live'
})
{
#
Check
if
Apache
config
is
OK
system
(
'apachectl configtest > /dev/null 2>&1'
);
system
(
'
/usr/sbin/
apachectl configtest > /dev/null 2>&1'
);
if
($?
>>
8
)
{
$
self
->
logger
(
"ERROR"
,
"APACHE: Failed configtest, reload NOT done"
);
return
$
self
;
...
...
@@ -694,7 +694,7 @@ sub _webserverReloadApache
$
self
->
logger
(
"INFO"
,
"APACHE: Successful configtest"
);
#
Reload
Apache
config
system
(
'service apache reload > /dev/null 2>&1'
);
system
(
'
/usr/sbin/
service apache reload > /dev/null 2>&1'
);
if
($?
>>
8
)
{
$
self
->
logger
(
"ERROR"
,
"APACHE: Failed reload"
);
return
$
self
;
...
...
@@ -717,7 +717,7 @@ sub _webserverReloadNginx
#
Check
if
the
configtest
passes
if
($
self
->{
'live'
})
{
#
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
)
{
$
self
->
logger
(
"ERROR"
,
"NGINX: Failed configtest, reload NOT done"
);
return
$
self
;
...
...
@@ -726,7 +726,7 @@ sub _webserverReloadNginx
$
self
->
logger
(
"INFO"
,
"NGINX: Successful configtest"
);
#
Reload
Nginx
config
system
(
'service nginx reload > /dev/null 2>&1'
);
system
(
'
/usr/sbin/
service nginx reload > /dev/null 2>&1'
);
if
($?
>>
8
)
{
$
self
->
logger
(
"ERROR"
,
"NGINX: Failed reload"
);
return
$
self
;
...
...
@@ -1791,7 +1791,7 @@ use Getopt::Long;
my $NAME = "
AWIT
-
CertMaster
";
our $VERSION = "
1.1.
9
";
our $VERSION = "
1.1.
10
";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment