tftp user is needed too

OBS-URL: https://build.opensuse.org/package/show/network/dnsmasq?expand=0&rev=31
This commit is contained in:
Uwe Gansert
2012-02-08 16:16:51 +00:00
committed by Git OBS Bridge
parent 67215239bf
commit 057a9ef8e7

View File

@@ -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