add user for saned (d'oh)

This commit is contained in:
Nils Philippsen 2016-10-19 11:33:26 +02:00
parent be40d9f1d6
commit 9a34fb1aff

View File

@ -261,6 +261,9 @@ udevadm hwdb --update >/dev/null 2>&1 || :
%pre daemon
getent group saned >/dev/null || groupadd -r saned
getent passwd saned >/dev/null || \
useradd -r -g saned -d %{_datadir}/sane -s /sbin/nologin \
-c "SANE scanner daemon user" saned
exit 0
%post daemon
@ -296,6 +299,7 @@ exit 0
%{_mandir}/*/*
%dir %{_libdir}/sane
%dir %{_datadir}/sane
%files doc
%doc %{_docdocdir}
@ -325,6 +329,7 @@ exit 0
%changelog
* Wed Oct 19 2016 Nils Philippsen <nils@redhat.com>
- use correct group name saned instead of placeholder
- add user for saned (d'oh)
* Fri Oct 07 2016 Nils Philippsen <nils@redhat.com> - 1.0.25-3
- use %%license for license files