mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-09-19 20:24:39 -04:00
rotate-session-ticket-keys: improve error handling
This commit is contained in:
parent
c5a724ea7e
commit
2db3740436
1 changed files with 6 additions and 2 deletions
|
@ -15,10 +15,14 @@ cat {1..4}.key > keys.new
|
|||
rsync -I keys.new keys
|
||||
rm keys.new
|
||||
|
||||
status=0
|
||||
|
||||
if systemctl is-enabled nginx.service >/dev/null; then
|
||||
nginx -s reload
|
||||
nginx -s reload || status=1
|
||||
fi
|
||||
|
||||
if systemctl is-enabled dnsdist.service >/dev/null; then
|
||||
dnsdist -c -e 'reloadAllCertificates()'
|
||||
dnsdist -c -e 'reloadAllCertificates()' || status=1
|
||||
fi
|
||||
|
||||
exit $status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue