]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
try some more guesses for where prefix is
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 19 Dec 2011 22:50:02 +0000 (16:50 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 19 Dec 2011 22:50:02 +0000 (16:50 -0600)
support-d/fscore_pb

index 66c049a8631ad0913195b1284e1c8233055d06f6..71ea1404bc321c665eb606cdaf13f77204139f0f 100755 (executable)
@@ -16,6 +16,15 @@ fi
 if [ -z "$prefix" -a -d "/opt/freeswitch" ] ; then
     prefix="/opt/freeswitch"
 fi
+
+if [ -z "$prefix" ] ; then
+    prefix=$FS_PREFIX
+fi
+
+if [ -z "$prefix" -a -f "./bin/freeswitch" ] ; then
+    prefix=`pwd`
+fi
+
 if [ -z "$prefix" ] ; then
     echo "Unable to locate freeswitch prefix directory."
     exit 255