forked from ISTI-ansible-roles/ansible-roles
Fix the acmetool letsencrypt hook for the mongod service. See https://support.d4science.org/issues/13157
This commit is contained in:
parent
81e7811be5
commit
3d747a953c
|
@ -22,10 +22,10 @@ chmod 440 ${MONGODB_CERTFILE}
|
|||
chgrp mongodb ${MONGODB_CERTFILE}
|
||||
|
||||
{% if mongodb_ssl_enabled %}
|
||||
echo "Reload the mongodb service" >> $LE_LOG_DIR/mongodb.log
|
||||
service mongodb stop >/dev/null 2>&1
|
||||
echo "Reload the mongod service" >> "$LE_LOG_DIR/mongodb.log"
|
||||
service mongod stop >> "$LE_LOG_DIR/mongodb.log" 2>&1
|
||||
sleep 10
|
||||
service mongodb start >/dev/null 2>&1
|
||||
service mongod start > "$LE_LOG_DIR/mongodb.log" 2>&1
|
||||
{% endif %}
|
||||
echo "Done." >> $LE_LOG_DIR/mongodb.log
|
||||
|
||||
|
|
Loading…
Reference in New Issue