From b57abc2d0427b0e6f49680c43e15df7093de88ab Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 15 Dec 2007 17:13:20 +0000 Subject: [PATCH] minor - fixing comments on Post Migration scripts - copying from oracle to oracleXe --- utils/RUN_PostMigration.sh | 6 +++--- utils/oracle/PostMigration.sh | 6 ++---- utils/oracleXE/PostMigration.sh | 21 +++++++++++++++++++++ utils/postgresql/PostMigration.sh | 8 +++----- 4 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 utils/oracleXE/PostMigration.sh diff --git a/utils/RUN_PostMigration.sh b/utils/RUN_PostMigration.sh index a95d563066..1097c31e20 100644 --- a/utils/RUN_PostMigration.sh +++ b/utils/RUN_PostMigration.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: RUN_ImportAdempiere.sh,v 1.9 2005/01/22 21:59:15 jjanke Exp $ +# $Id: RUN_PostMigration.sh if [ $ADEMPIERE_HOME ]; then cd $ADEMPIERE_HOME/utils @@ -53,9 +53,9 @@ echo # Parameter: sh $ADEMPIERE_DB_PATH/PostMigration.sh $SYSUSER/$ADEMPIERE_DB_SYSTEM $ADEMPIERE_DB_USER $ADEMPIERE_DB_PASSWORD $ADEMPIERE_DB_SYSTEM -#Run Synchronized Terminology +#Run Synchronize Terminology echo -echo Synchronized Terminology +echo Synchronize Terminology echo $JAVA_HOME/bin/java $JAVA_OPTS $ADEMPIERE_OPTS -classpath $MYCLASSPATH org.compiere.process.SynchronizeTerminology diff --git a/utils/oracle/PostMigration.sh b/utils/oracle/PostMigration.sh index 257d590b21..f1fdace845 100644 --- a/utils/oracle/PostMigration.sh +++ b/utils/oracle/PostMigration.sh @@ -1,7 +1,5 @@ -# $Id: ImportAdempiere.sh,v 1.10 2005/12/20 07:12:17 jjanke Exp $ -echo Adempiere Database Import $Revision: 1.10 $ - -echo Importing Adempiere DB from $ADEMPIERE_HOME/data/Adempiere.dmp +# $Id: PostMigration.sh +echo Oracle Post Migration Scripts if [ $# -le 2 ] then diff --git a/utils/oracleXE/PostMigration.sh b/utils/oracleXE/PostMigration.sh new file mode 100644 index 0000000000..f1fdace845 --- /dev/null +++ b/utils/oracleXE/PostMigration.sh @@ -0,0 +1,21 @@ +# $Id: PostMigration.sh +echo Oracle Post Migration Scripts + +if [ $# -le 2 ] + then + echo "Usage: $0 " + echo "Example: $0 system/manager adempiere adempiere" + exit 1 +fi +if [ "$ADEMPIERE_HOME" = "" -o "$ADEMPIERE_DB_NAME" = "" ] + then + echo "Please make sure that the environment variables are set correctly:" + echo " ADEMPIERE_HOME e.g. /Adempiere" + echo " ADEMPIERE_DB_NAME e.g. adempiere.adempiere.org" + exit 1 +fi + +echo ------------------------------------- +echo Add missing translations +echo ------------------------------------- +echo sqlplus $2/$3@$ADEMPIERE_DB_SERVER/$ADEMPIERE_DB_NAME @$ADEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/01_add_missing_Translations.sql diff --git a/utils/postgresql/PostMigration.sh b/utils/postgresql/PostMigration.sh index 0063175a68..db4b0c058b 100644 --- a/utils/postgresql/PostMigration.sh +++ b/utils/postgresql/PostMigration.sh @@ -1,7 +1,5 @@ -# $Id: ImportAdempiere.sh,v 1.10 2005/12/20 07:12:17 jjanke Exp $ -echo Adempiere Database Import $Revision: 1.10 $ - -echo Importing Adempiere DB from $ADEMPIERE_HOME/data/Adempiere_pg.dmp +# $Id: PostMigration.sh +echo Postgresql Post Migration Scripts if [ $# -le 2 ] then @@ -19,7 +17,7 @@ fi export PGPASSWORD=$3 echo ------------------------------------- -echo Import Adempiere_pg.dmp +echo Add missing translations echo ------------------------------------- psql -d $ADEMPIERE_DB_NAME -U $2 -f 01_add_missing_translations.sql export PGPASSWORD=