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:
Brian West 2008-03-29 04:22:28 +00:00
parent 2ef2ea1646
commit 43f2016bed
1 changed files with 3 additions and 1 deletions

View File

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