diff options
Diffstat (limited to 'pcr/postsrsd/postsrsd-genkey.service')
-rw-r--r-- | pcr/postsrsd/postsrsd-genkey.service | 8 |
1 files changed, 8 insertions, 0 deletions
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 |