Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12241550
letsencrypt-renewal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
295 B
Referenced Files
None
Subscribers
None
letsencrypt-renewal
View Options
#!/usr/bin/env sh
nginx_test
()
{
nginx_output
=
"
$(
nginx -t
2
>
&
1
)
"
nginx_returncode
=
"
$?
"
if
[
"
$nginx_returncode
"
-eq
0
]
&&
[
-n
"
$(
echo
"
${
nginx_output
}
"
|
grep warn
)
"
]
;
then
return
2
;
else
return
"
$nginx_returncode
"
;
fi
;
}
letsencrypt renew
&&
nginx_test
&&
service nginx restart
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 05:23 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3065162
Default Alt Text
letsencrypt-renewal (295 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment