FS-7389 tweak the freeswitch users homedir to be correct in the specfile

This commit is contained in:
Ken Rice 2016-03-09 11:30:02 -06:00
parent a5a5cc47b4
commit cbdddeaba7
1 changed files with 1 additions and 1 deletions

View File

@ -1716,7 +1716,7 @@ cd ../..
%pre
%ifos linux
if ! /usr/bin/id freeswitch &>/dev/null; then
/usr/sbin/useradd -r -g daemon -s /bin/false -c "The FreeSWITCH Open Source Voice Platform" -d %{prefix} freeswitch || \
/usr/sbin/useradd -r -g daemon -s /bin/false -c "The FreeSWITCH Open Source Voice Platform" -d %{LOCALSTATEDIR} freeswitch || \
%logmsg "Unexpected error adding user \"freeswitch\". Aborting installation."
fi
%endif