aports/testing/otf/otf-server.post-install
2025-05-28 22:36:31 +00:00

10 lines
197 B
Bash

#!/bin/sh
secretfile=/var/lib/otf/secret
! [ -f $secretfile ] && \
touch $secretfile && \
chown otf:otf $secretfile && \
chmod 600 $secretfile && \
xxd -u -l 16 -p /dev/urandom > $secretfile