]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
find prefix better
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 12 Nov 2009 03:46:43 +0000 (03:46 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 12 Nov 2009 03:46:43 +0000 (03:46 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15438 d0543943-73ff-0310-b7d9-9358b9ac24b2

support-d/fscore_pb

index dd2db25c8cf353674d1e66e4c68edeb34b135771..71900d1d37161f51f9d380ae09ab4e34b07c743a 100755 (executable)
@@ -4,10 +4,12 @@ arg=$1
 shift
 
 prefix=$(cat config.status | grep @prefix@ | awk -F, '{print $3}')
+if [ -z "$prefix" ] ; then
+    prefix=$(cat config.status | grep '"prefix"' | awk -F\" '{print $4}')
+fi
 
 if [ -z "$prefix" ] ; then
-       echo "Cannot determine prefix!"
-       exit 255
+    prefix="/usr/local/freeswitch"
 fi
 
 if [ "$arg" = "gcore" ] ; then