Fix the acmetool letsencrypt hook for the mongod service. See https://support.d4science.org/issues/13157

This commit is contained in:
Andrea Dell'Amico 2019-01-16 13:54:13 +01:00
parent 81e7811be5
commit 3d747a953c
1 changed files with 3 additions and 3 deletions

View File

@ -22,10 +22,10 @@ chmod 440 ${MONGODB_CERTFILE}
chgrp mongodb ${MONGODB_CERTFILE} chgrp mongodb ${MONGODB_CERTFILE}
{% if mongodb_ssl_enabled %} {% if mongodb_ssl_enabled %}
echo "Reload the mongodb service" >> $LE_LOG_DIR/mongodb.log echo "Reload the mongod service" >> "$LE_LOG_DIR/mongodb.log"
service mongodb stop >/dev/null 2>&1 service mongod stop >> "$LE_LOG_DIR/mongodb.log" 2>&1
sleep 10 sleep 10
service mongodb start >/dev/null 2>&1 service mongod start > "$LE_LOG_DIR/mongodb.log" 2>&1
{% endif %} {% endif %}
echo "Done." >> $LE_LOG_DIR/mongodb.log echo "Done." >> $LE_LOG_DIR/mongodb.log