mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-20 06:52:44 -05:00
minor rotate-session-ticket-keys improvements
This commit is contained in:
parent
9ed61cef61
commit
9ffcb3e648
1 changed files with 5 additions and 7 deletions
|
|
@ -4,16 +4,14 @@ set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
cd /etc/session-ticket-keys
|
cd /etc/session-ticket-keys
|
||||||
|
|
||||||
rsync -I 2.key 1.key
|
rsync -tI 2.key 1.key
|
||||||
rsync -I 3.key 2.key
|
rsync -tI 3.key 2.key
|
||||||
rsync -I 4.key 3.key
|
rsync -tI 4.key 3.key
|
||||||
head -c 80 </dev/random >new.key
|
head -c 80 </dev/random >new.key
|
||||||
rsync -I new.key 4.key
|
mv new.key 4.key
|
||||||
rm new.key
|
|
||||||
|
|
||||||
cat {1..4}.key > keys.new
|
cat {1..4}.key > keys.new
|
||||||
rsync -I keys.new keys
|
mv keys.new keys
|
||||||
rm keys.new
|
|
||||||
|
|
||||||
status=0
|
status=0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue