mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-07-26 08:15:20 -04:00
rotate-session-ticket-keys: split up code with newlines
This commit is contained in:
parent
57a5209d8b
commit
5ce289433b
1 changed files with 3 additions and 0 deletions
|
@ -10,12 +10,15 @@ rsync -I 4.key 3.key
|
||||||
head -c 80 </dev/random >new.key
|
head -c 80 </dev/random >new.key
|
||||||
rsync -I new.key 4.key
|
rsync -I new.key 4.key
|
||||||
rm new.key
|
rm new.key
|
||||||
|
|
||||||
cat {1..4}.key > keys.new
|
cat {1..4}.key > keys.new
|
||||||
rsync -I keys.new keys
|
rsync -I keys.new keys
|
||||||
rm keys.new
|
rm keys.new
|
||||||
|
|
||||||
if systemctl is-enabled nginx.service >/dev/null; then
|
if systemctl is-enabled nginx.service >/dev/null; then
|
||||||
nginx -s reload
|
nginx -s reload
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if systemctl is-enabled dnsdist.service >/dev/null; then
|
if systemctl is-enabled dnsdist.service >/dev/null; then
|
||||||
dnsdist -c -e 'reloadAllCertificates()'
|
dnsdist -c -e 'reloadAllCertificates()'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue