library/roles/postgresql/files/postgresql-letsencrypt-acme.sh: postgresql needs a full restart when the SSL certificate changes.

This commit is contained in:
Andrea Dell'Amico 2017-08-21 13:26:14 +02:00
parent 587a62417a
commit 2f914bcf2d
1 changed files with 2 additions and 2 deletions

View File

@ -26,9 +26,9 @@ chgrp postgres ${POSTGRESQL_KEYFILE}
echo "Reload the postgresql service" >> $LE_LOG_DIR/postgresql.log
if [ -x /bin/systemctl ] ; then
systemctl reload postgresql >> $LE_LOG_DIR/postgresql.log 2>&1
systemctl restart postgresql >> $LE_LOG_DIR/postgresql.log 2>&1
else
service postgresql reload >> $LE_LOG_DIR/postgresql.log 2>&1
service postgresql restart >> $LE_LOG_DIR/postgresql.log 2>&1
fi
echo "Done." >> $LE_LOG_DIR/postgresql.log