2008-11-05 20:09:05 +07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-12-16 00:13:20 +07:00
|
|
|
# $Id: PostMigration.sh
|
|
|
|
echo Oracle Post Migration Scripts
|
2007-11-02 16:51:12 +07:00
|
|
|
|
|
|
|
if [ $# -le 2 ]
|
|
|
|
then
|
|
|
|
echo "Usage: $0 <systemAccount> <AdempiereID> <AdempierePWD>"
|
|
|
|
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 -------------------------------------
|
2008-08-23 04:27:20 +07:00
|
|
|
echo sqlplus $2/$3@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME @$ADEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/01_add_missing_Translations.sql
|