Minor tweaks to startup script
authorChip Black <bytex64@bytex64.net>
Fri, 5 Jun 2009 08:04:54 +0000 (03:04 -0500)
committerChip Black <bytex64@bytex64.net>
Fri, 5 Jun 2009 08:04:54 +0000 (03:04 -0500)
WebThing

index c999914..022be94 100755 (executable)
--- a/WebThing
+++ b/WebThing
@@ -1,9 +1,11 @@
 #!/bin/sh
 
-cd `dirname "$0"`
+WEBTHING_HOME=`dirname "$0"`
 
-export LD_LIBRARY_PATH=plugins:$LD_LIBRARY_PATH
+# We change directories because we don't have a proper configuration
+# architecture, yet.
+cd "$WEBTHING_HOME"
 
-echo $LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=$WEBTHING_HOME:$WEBTHING_HOME/plugins:$LD_LIBRARY_PATH
 
-exec mono main.exe "$@"
+exec mono $WEBTHING_HOME/main.exe "$@"