diff --git a/dnsmasq.spec b/dnsmasq.spec index afe4e0f..77671fe 100644 --- a/dnsmasq.spec +++ b/dnsmasq.spec @@ -66,6 +66,10 @@ make %{?_smp_mflags} AWK=gawk all-i18n if ! /usr/bin/getent group tftp >/dev/null; then %{_sbindir}/groupadd -r tftp 2>/dev/null || : fi +if ! /usr/bin/getent passwd tftp >/dev/null; then + %{_sbindir}/useradd -c "TFTP account" -d /srv/tftpboot -G tftp -g tftp \ + -r -s /bin/false tftp 2>/dev/null || : +fi if ! /usr/bin/getent passwd dnsmasq >/dev/null; then /usr/sbin/useradd -r -d /var/lib/empty -s /bin/false -c "dnsmasq" -g nogroup -G tftp dnsmasq || : fi