diff --git a/freeswitch.spec b/freeswitch.spec index 70e1e9f948..dad1eaf0e2 100644 --- a/freeswitch.spec +++ b/freeswitch.spec @@ -237,7 +237,7 @@ touch .noversion # Add a freeswitch user with group daemon %pre %ifos linux -/usr/sbin/useradd -r -g daemon -s /bin/false -c "The FreeSWITCH Open Source Voice Platform" -d %{prefix}/var freeswitch 2> /dev/null || : +/usr/sbin/useradd -r -g daemon -s /bin/false -c "The FreeSWITCH Open Source Voice Platform" -d %{prefix} freeswitch 2> /dev/null || : %endif %post @@ -246,6 +246,8 @@ touch .noversion %{__mkdir} -p /etc/opt %{__ln_s} -f %{prefix}/conf /etc%{prefix} +chkconfig --add freeswitch + %postun %{?run_ldconfig:%run_ldconfig} %{__rm} -rf %{prefix}