2010-11-04 02:46:38 +07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# $Id: PostMigration.sh
|
|
|
|
echo Oracle Post Migration Scripts
|
|
|
|
|
|
|
|
if [ $# -le 2 ]
|
|
|
|
then
|
|
|
|
echo "Usage: $0 <systemAccount> <AdempiereID> <AdempierePWD>"
|
2012-06-06 21:13:34 +07:00
|
|
|
echo "Example: $0 system/manager idempiere idempiere"
|
2010-11-04 02:46:38 +07:00
|
|
|
exit 1
|
|
|
|
fi
|
2012-06-06 21:13:34 +07:00
|
|
|
if [ "$IDEMPIERE_HOME" = "" -o "$ADEMPIERE_DB_NAME" = "" ]
|
2010-11-04 02:46:38 +07:00
|
|
|
then
|
|
|
|
echo "Please make sure that the environment variables are set correctly:"
|
2012-06-06 21:13:34 +07:00
|
|
|
echo " IDEMPIERE_HOME e.g. /idempiere"
|
|
|
|
echo " ADEMPIERE_DB_NAME e.g. idempiere.idempiere.org"
|
2010-11-04 02:46:38 +07:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo -------------------------------------
|
|
|
|
echo Add missing translations
|
|
|
|
echo -------------------------------------
|
2012-06-06 21:13:34 +07:00
|
|
|
echo sqlplus $2/$3@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME @$IDEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/01_add_missing_Translations.sql
|