svn commit: r766223 - /ofbiz/trunk/debian/ofbiz-framework.postinst

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

svn commit: r766223 - /ofbiz/trunk/debian/ofbiz-framework.postinst

doogie-3
Author: doogie
Date: Sat Apr 18 05:53:31 2009
New Revision: 766223

URL: http://svn.apache.org/viewvc?rev=766223&view=rev
Log:
Put /usr/share/ofbiz into OFBIZ_HOME.

Modified:
    ofbiz/trunk/debian/ofbiz-framework.postinst

Modified: ofbiz/trunk/debian/ofbiz-framework.postinst
URL: http://svn.apache.org/viewvc/ofbiz/trunk/debian/ofbiz-framework.postinst?rev=766223&r1=766222&r2=766223&view=diff
==============================================================================
--- ofbiz/trunk/debian/ofbiz-framework.postinst (original)
+++ ofbiz/trunk/debian/ofbiz-framework.postinst Sat Apr 18 05:53:31 2009
@@ -21,6 +21,7 @@
 : "$0" "$@"
 JAVA_HOME=""
 JAVA_HOMES="/usr/lib/jvm/java-6-openjdk"
+OFBIZ_HOME="/usr/share/ofbiz"
 for possible in $JAVA_HOMES; do
  if [ -e "$possible/bin/java" ]; then
  JAVA_HOME="$possible"
@@ -36,7 +37,7 @@
 
 encrypt_password() {
  (
- cd /usr/share/ofbiz
+ cd "$OFBIZ_HOME"
  "$JAVA" -classpath framework/base/build/lib/ofbiz-base.jar:framework/common/build/lib/ofbiz-common.jar:framework/base/config:framework/entity/build/lib/ofbiz-entity.jar:framework/base/lib/javolution.jar:framework/base/lib/commons/commons-collections.jar:framework/base/lib/jdbm.jar:framework/base/lib/log4j.jar:framework/security/config:support EncryptPassword "$1"
  )
 }
@@ -47,8 +48,8 @@
  (framework/entity/config/entityengine.xml)
  . /etc/dbconfig-common/ofbiz.conf
  xalan \
- -xsl "/usr/share/ofbiz/support/entityengine.xslt" \
- -in "/usr/share/ofbiz/ucf/$source" \
+ -xsl "$OFBIZ_HOME/support/entityengine.xslt" \
+ -in "$OFBIZ_HOME/ucf/$source" \
  -param dbtype "'$dbc_dbtype'" \
  -param dbuser "'$dbc_dbuser'" \
  -param dbpass "'$dbc_dbpass'" \
@@ -84,9 +85,9 @@
  xalan -q \
  -param reader "'$1'" \
  -param password "'$ofbiz_password_encrypted'" \
- -param ofbizhome "'/usr/share/ofbiz'" \
- -xsl "/usr/share/ofbiz/support/override-data.xslt" \
- -in "/usr/share/ofbiz/framework/base/config/component-load.xml" \
+ -param ofbizhome "'$OFBIZ_HOME'" \
+ -xsl "$OFBIZ_HOME/support/override-data.xslt" \
+ -in "$OFBIZ_HOME/framework/base/config/component-load.xml" \
  -out "$tempdir/reader-$1.xml"
  chown ofbiz:ofbiz "$tempdir/reader-$1.xml"
  fi