Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56306857
nginxCheck.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
880 B
Referenced Files
None
Subscribers
None
nginxCheck.sh
View Options
#!/bin/sh
# -------------------------------------------------------------
# Let's encrypt
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/core/certificates/files/acmesh/nginxCheck.sh
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
nginx_test
()
{
nginx_output
=
"
$(
nginx
-t
2
>
&
1
)
"
nginx_return_code
=
"
$?
"
if
[
"
$nginx_return_code
"
-eq
0
]
&&
echo
"
${
nginx_output
}
"
|
grep
warn
>
&
2
;
then
return
2
;
else
return
"
$nginx_return_code
"
;
fi
;
}
nginx_test
&&
nginx
-s
reload
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Nov 6, 21:06 (1 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4094301
Default Alt Text
nginxCheck.sh (880 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment