summaryrefslogtreecommitdiff
path: root/pcr/postsrsd/postsrsd-genkey.service
blob: e6fb39fae04c949b27e15a5ad49c16e1ce00a6c5 (plain)
1
2
3
4
5
6
7
8
[Unit]
Description=PostSRSd Key Generation
ConditionPathExists=!/etc/postsrsd.secret

[Service]
ExecStart=/bin/sh -c 'dd if=/dev/urandom bs=18 count=1 status=none | base64 > /etc/postsrsd.secret'
Type=oneshot
RemainAfterExit=yes