diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-05-19 15:03:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-06-17 12:54:00 +0000 |
commit | d20f9ec8807a2fefc2825e4400cf21f9273f4d6b (patch) | |
tree | 7dbf7b1d6cb98cbb4698c8787ee4e93bbfd02ac7 /dehydrated | |
parent | Removing superfluous dot in output-message of dehydrated-nsupdate. (diff) | |
download | service-tools-d20f9ec8807a2fefc2825e4400cf21f9273f4d6b.tar.xz service-tools-d20f9ec8807a2fefc2825e4400cf21f9273f4d6b.zip |
Adding freeradius to dehydrated service-reload hook.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'dehydrated')
-rwxr-xr-x | dehydrated/share/hooks/exit_hook.service-reload | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dehydrated/share/hooks/exit_hook.service-reload b/dehydrated/share/hooks/exit_hook.service-reload index c62c133..6d20eb9 100755 --- a/dehydrated/share/hooks/exit_hook.service-reload +++ b/dehydrated/share/hooks/exit_hook.service-reload @@ -38,6 +38,14 @@ Run_chrony () fi } +Run_freeradius () +{ + if grep -Eqrs 'certificate_file = /var/lib/dehydrated' /etc/freeradius/*/* + then + service freeradius reload + fi +} + Run_haproxy () { if grep 'ssl crt' /etc/haproxy/haproxy.cfg | grep -qsv '^#' @@ -96,7 +104,7 @@ Run_redis_server () echo " + Reloading services:" -SERVICES="apache2 chrony haproxy knot-resolver postfix postgresql redis-sentinel redis-server" +SERVICES="apache2 chrony freeradius haproxy knot-resolver postfix postgresql redis-sentinel redis-server" for SERVICE in ${SERVICES} do |