aports/testing/keydb/keydb.post-install
2024-05-25 20:52:39 +00:00

11 lines
343 B
Bash

#!/bin/sh
# Create directory for the socket if OpenRC is not present (e.g. in container).
# It's conditioned using post-install script specifically to avoid easily
# overlookable mistakes in the init script (service working until the
# first restart).
if ! [ -e /sbin/openrc ]; then
install -d -m 755 -o keydb -g keydb /run/keydb
fi
exit 0