mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-02 19:29:31 +00:00
fix spec file thanks andrew
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7981 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2ef2ea1646
commit
43f2016bed
@ -237,7 +237,7 @@ touch .noversion
|
|||||||
# Add a freeswitch user with group daemon
|
# Add a freeswitch user with group daemon
|
||||||
%pre
|
%pre
|
||||||
%ifos linux
|
%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
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -246,6 +246,8 @@ touch .noversion
|
|||||||
%{__mkdir} -p /etc/opt
|
%{__mkdir} -p /etc/opt
|
||||||
%{__ln_s} -f %{prefix}/conf /etc%{prefix}
|
%{__ln_s} -f %{prefix}/conf /etc%{prefix}
|
||||||
|
|
||||||
|
chkconfig --add freeswitch
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%{?run_ldconfig:%run_ldconfig}
|
%{?run_ldconfig:%run_ldconfig}
|
||||||
%{__rm} -rf %{prefix}
|
%{__rm} -rf %{prefix}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user