Author: nextgens Date: 2006-11-03 19:50:58 +0000 (Fri, 03 Nov 2006) New Revision: 10810
Modified: trunk/apps/new_installer/res/unix/bin/1run.sh Log: new_installer: prevent 1run.sh from beeing executed more than once and add a workaround if not executed from the installer; Maybe I ought to add an interractive mode Modified: trunk/apps/new_installer/res/unix/bin/1run.sh =================================================================== --- trunk/apps/new_installer/res/unix/bin/1run.sh 2006-11-03 19:43:45 UTC (rev 10809) +++ trunk/apps/new_installer/res/unix/bin/1run.sh 2006-11-03 19:50:58 UTC (rev 10810) @@ -1,9 +1,19 @@ #!/bin/bash -DST="$INSTALL_PATH" +if [[ -n $DST]] +then + DST="$INSTALL_PATH" +else + DST="." +fi echo "Installing freenet in $INSTALL_PATH" cd "$DST" +if [[ -s freenet-ext.jar ]] +then + echo "This script isn't meant to be used more than once." + exit +fi # We need the exec flag on /bin chmod a+rx bin/* lib/* &>/dev/null
