library/roles/postgresql/files/postgresql-letsencrypt-acme.sh: postgresql needs a full restart when the SSL certificate changes.
This commit is contained in:
parent
587a62417a
commit
2f914bcf2d
|
@ -26,9 +26,9 @@ chgrp postgres ${POSTGRESQL_KEYFILE}
|
||||||
|
|
||||||
echo "Reload the postgresql service" >> $LE_LOG_DIR/postgresql.log
|
echo "Reload the postgresql service" >> $LE_LOG_DIR/postgresql.log
|
||||||
if [ -x /bin/systemctl ] ; then
|
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
|
else
|
||||||
service postgresql reload >> $LE_LOG_DIR/postgresql.log 2>&1
|
service postgresql restart >> $LE_LOG_DIR/postgresql.log 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Done." >> $LE_LOG_DIR/postgresql.log
|
echo "Done." >> $LE_LOG_DIR/postgresql.log
|
||||||
|
|
Loading…
Reference in New Issue