]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix spec file thanks andrew
authorBrian West <brian@freeswitch.org>
Sat, 29 Mar 2008 04:22:28 +0000 (04:22 +0000)
committerBrian West <brian@freeswitch.org>
Sat, 29 Mar 2008 04:22:28 +0000 (04:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7981 d0543943-73ff-0310-b7d9-9358b9ac24b2

freeswitch.spec

index 70e1e9f948028e08e6c7f3771c86ead571040320..dad1eaf0e26deabe82dd61c1dc7a59a581088450 100644 (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}