Author: hansbak
Date: Thu Dec 22 02:38:37 2011
New Revision: 1222007
URL:
http://svn.apache.org/viewvc?rev=1222007&view=revLog:
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 $?