]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7389 tweak the freeswitch users homedir to be correct in the specfile
authorKen Rice <krice@freeswitch.org>
Wed, 9 Mar 2016 17:30:02 +0000 (11:30 -0600)
committerKen Rice <krice@freeswitch.org>
Wed, 9 Mar 2016 17:30:18 +0000 (11:30 -0600)
freeswitch.spec

index 8d1b02a7013413273f2db0953fabd1e7b0f5d5d3..0032b0503918bc9310d39a040e1afc25e9b96207 100644 (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