Author: nextgens
Date: 2008-06-04 22:01:57 +0000 (Wed, 04 Jun 2008)
New Revision: 20205

Modified:
   trunk/apps/new_installer/res/unix/run.sh
Log:
new_installer: we should be able to call run.sh even from a different directory

Modified: trunk/apps/new_installer/res/unix/run.sh
===================================================================
--- trunk/apps/new_installer/res/unix/run.sh    2008-06-04 22:00:08 UTC (rev 
20204)
+++ trunk/apps/new_installer/res/unix/run.sh    2008-06-04 22:01:57 UTC (rev 
20205)
@@ -58,12 +58,6 @@
     exit 1
 fi

-if test ! -s freenet.ini
-then
-       exec ./bin/1run.sh
-       exit
-fi
-
 # and get java implementation too, Sun JDK or Kaffe
 JAVA_IMPL=`java -version 2>&1 | head -n 1 | cut -f1 -d' '`

@@ -138,6 +132,12 @@
 cd "`dirname \"$REALPATH\"`"
 REALDIR="`pwd`"

+if test ! -s freenet.ini
+then
+       exec ./bin/1run.sh
+       exit
+fi
+
 # If the PIDDIR is relative, set its value relative to the full REALPATH to 
avoid problems if
 #  the working directory is later changed.
 FIRST_CHAR="`echo $PIDDIR | cut -c1,1`"


Reply via email to