24 lines
861 B
Bash
24 lines
861 B
Bash
|
# $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
|
||
|
|
||
|
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 -------------------------------------
|
||
|
echo sqlplus $2/$3@$ADEMPIERE_DB_SERVER/$ADEMPIERE_DB_NAME @$ADEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/01_add_missing_Translations.sql
|