repo/extra/openntpd/post-install

12 lines
208 B
Bash
Executable File

#!/bin/sh -e
if ! grep -Fq ntpd /etc/group; then
echo "Creating ntpd user."
addgroup -S ntpd
fi
if ! grep -Fq ntpd /etc/passwd; then
echo "Creating ntpd group."
adduser -S -h /var/empty -G ntpd ntpd
fi