2026-07-28 20:43:46 +08:00

12 lines
318 B
Bash
Executable File

#!/bin/sh
set -eu
if ! getent group drosync >/dev/null 2>&1; then
addgroup --system drosync
fi
if ! getent passwd drosync >/dev/null 2>&1; then
adduser --system --ingroup drosync --home /var/lib/drosync --no-create-home drosync
fi
install -d -o drosync -g drosync -m 0700 /var/lib/drosync
systemctl daemon-reload