diff --git a/tvheadend.changes b/tvheadend.changes index a0fa8d4..2d57acd 100644 --- a/tvheadend.changes +++ b/tvheadend.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 16 21:28:58 UTC 2017 - aloisio@gmx.com + +- Fixed %pre + ------------------------------------------------------------------- Tue May 16 10:43:34 UTC 2017 - aloisio@gmx.com diff --git a/tvheadend.spec b/tvheadend.spec index 65c220b..ef7e81a 100644 --- a/tvheadend.spec +++ b/tvheadend.spec @@ -111,8 +111,7 @@ EOM %pre %service_add_pre %{name}.service -%{_sbindir}/useradd -u 1337 -g %{htsgroup} -m -d %{homedir} -r -s /bin/false %{htsuser} -c "Tvheadend TV server" &> /dev/null || : -%{_sbindir}/passwd -l %{htsuser} &> /dev/null || : +getent passwd %htsuser >/dev/null || %{_sbindir}/useradd -g %{htsgroup} -m -d %{homedir} -r -s /bin/false %{htsuser} -c "Tvheadend TV server" %preun %service_del_preun %{name}.service