Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793687
letsencrypt-renewal.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
924 B
Referenced Files
None
Subscribers
None
letsencrypt-renewal.sh
View Options
#!/bin/sh
# -------------------------------------------------------------
# Let's encrypt
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-08-24
# License: Trivial work, not eligible to copyright
# Source file: roles/webserver-core/letsencrypt/files/letsencrypt-renewal.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_returncode
=
"
$?
"
if
[
"
$nginx_returncode
"
-eq
0
]
&&
[
-n
"
$(
echo
"
${
nginx_output
}
"
|
grep warn
)
"
]
;
then
return
2
;
else
return
"
$nginx_returncode
"
;
fi
;
}
certbot renew
&&
nginx_test
&&
service nginx restart
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Feb 28, 22:47 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2438054
Default Alt Text
letsencrypt-renewal.sh (924 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment