From 88d324a87749b2e82db62a9e29f2c09c7f400d2c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 23 Apr 2017 18:50:19 -0400 Subject: update pcr/postsrsd --- pcr/postsrsd/postsrsd-genkey.service | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pcr/postsrsd/postsrsd-genkey.service (limited to 'pcr/postsrsd/postsrsd-genkey.service') diff --git a/pcr/postsrsd/postsrsd-genkey.service b/pcr/postsrsd/postsrsd-genkey.service new file mode 100644 index 000000000..ca29b3cd9 --- /dev/null +++ b/pcr/postsrsd/postsrsd-genkey.service @@ -0,0 +1,8 @@ +[Unit] +Description=PostSRSd Key Generation +ConditionPathExists=!/etc/postsrsd.conf + +[Service] +ExecStart=/bin/sh -c 'dd if=/dev/urandom bs=18 count=1 status=none | base64 > /etc/postsrsd.secret' +Type=oneshot +RemainAfterExit=yes -- cgit v1.2.3