mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
fix docs - nginx "restart" to "reload"
https://github.com/chatmail/relay/pull/614#discussion_r2269896158
This commit is contained in:
@@ -190,8 +190,8 @@ monitor_certificates() {
|
|||||||
current_hash=$(calculate_hash)
|
current_hash=$(calculate_hash)
|
||||||
if [[ "$current_hash" != "$previous_hash" ]]; then
|
if [[ "$current_hash" != "$previous_hash" ]]; then
|
||||||
# TODO: add an option to restart at a specific time interval
|
# TODO: add an option to restart at a specific time interval
|
||||||
echo "[INFO] Certificate's folder hash was changed, restarting nginx, dovecot and postfix services."
|
echo "[INFO] Certificate's folder hash was changed, reloading nginx, dovecot and postfix services."
|
||||||
systemctl restart nginx.service
|
systemctl reload nginx.service
|
||||||
systemctl reload dovecot.service
|
systemctl reload dovecot.service
|
||||||
systemctl reload postfix.service
|
systemctl reload postfix.service
|
||||||
previous_hash=$current_hash
|
previous_hash=$current_hash
|
||||||
|
|||||||
@@ -169,8 +169,8 @@ monitor_certificates() {
|
|||||||
current_hash=$(calculate_hash)
|
current_hash=$(calculate_hash)
|
||||||
if [[ "$current_hash" != "$previous_hash" ]]; then
|
if [[ "$current_hash" != "$previous_hash" ]]; then
|
||||||
# TODO: add an option to restart at a specific time interval
|
# TODO: add an option to restart at a specific time interval
|
||||||
echo "[INFO] Certificate's folder hash was changed, restarting nginx, dovecot and postfix services."
|
echo "[INFO] Certificate's folder hash was changed, reloading nginx, dovecot and postfix services."
|
||||||
systemctl restart nginx.service
|
systemctl reload nginx.service
|
||||||
systemctl reload dovecot.service
|
systemctl reload dovecot.service
|
||||||
systemctl reload postfix.service
|
systemctl reload postfix.service
|
||||||
previous_hash=$current_hash
|
previous_hash=$current_hash
|
||||||
|
|||||||
Reference in New Issue
Block a user