svn commit: r1222007 - /ofbiz/trunk/rc.ofbiz.for.ubuntu

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1222007 - /ofbiz/trunk/rc.ofbiz.for.ubuntu

hansbak-2
Author: hansbak
Date: Thu Dec 22 02:38:37 2011
New Revision: 1222007

URL: http://svn.apache.org/viewvc?rev=1222007&view=rev
Log:
code improvement and typing error correction

Modified:
    ofbiz/trunk/rc.ofbiz.for.ubuntu

Modified: ofbiz/trunk/rc.ofbiz.for.ubuntu
URL: http://svn.apache.org/viewvc/ofbiz/trunk/rc.ofbiz.for.ubuntu?rev=1222007&r1=1222006&r2=1222007&view=diff
==============================================================================
--- ofbiz/trunk/rc.ofbiz.for.ubuntu (original)
+++ ofbiz/trunk/rc.ofbiz.for.ubuntu Thu Dec 22 02:38:37 2011
@@ -26,7 +26,7 @@
 
 # the userlogin the script should run under and is the home dirname, in this case /home/ofbiz/ofbiz
 OFBIZUSER="ofbiz"
-OFBIZDIR=""ofbiz"
+OFBIZDIR="ofbiz"
 
 #============== no need to change anything below this line =======================
 
@@ -38,8 +38,8 @@ start() {
         return 0
     fi
     if [ "$USER" = "$OFBIZUSER" ]; then
-        echo "starting standard /home/$OFBIZUSER/$OFBIZDIR/startofbiz.sh"
-        cd /home/$OFBIZUSER/$OFBIZDIR
+        echo "starting standard ~/$OFBIZDIR/startofbiz.sh"
+        cd ~/$OFBIZDIR
         ./startofbiz.sh
         if [ $? = 0 ]; then
             echo "start success"
@@ -53,7 +53,7 @@ start() {
 stop() {
     if [ "$USER" = "$OFBIZUSER" ]; then
         echo "stopping standard /home/$OFBIZUSER/$OFBIZDIR/stopofbiz.sh"
-        cd /home/$OFBIZUSER/$OFBIZDIR
+        cd ~/$OFBIZDIR
     MAXCOUNT=10
         COUNTER=0
         until [ $COUNTER -gt $MAXCOUNT ]; do
@@ -119,6 +119,5 @@ case "$1" in
         exit 1
     ;;
 esac
-echo
 exit $?