2006-11-17 10:14:43 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $Id: RUN_ImportAdempiere.sh,v 1.9 2005/01/22 21:59:15 jjanke Exp $
|
|
|
|
|
|
|
|
if [ $ADEMPIERE_HOME ]; then
|
|
|
|
cd $ADEMPIERE_HOME/utils
|
|
|
|
fi
|
|
|
|
. ./myEnvironment.sh Server
|
|
|
|
echo Import Adempiere - $ADEMPIERE_HOME \($ADEMPIERE_DB_NAME\)
|
|
|
|
|
2006-12-28 15:33:33 +07:00
|
|
|
SUFFIX=""
|
|
|
|
SYSUSER=system
|
|
|
|
if [ $ADEMPIERE_DB_PATH = "postgresql" ]
|
|
|
|
then
|
|
|
|
SUFFIX="_pg"
|
|
|
|
SYSUSER=postgres
|
|
|
|
fi
|
2006-11-17 10:14:43 +07:00
|
|
|
|
2006-12-28 15:33:33 +07:00
|
|
|
echo Re-Create Adempiere User and import $ADEMPIERE_HOME/data/Adempiere${SUFFIX}.dmp - \($ADEMPIERE_DB_NAME\)
|
2006-11-17 10:14:43 +07:00
|
|
|
echo == The import will show warnings. This is OK ==
|
2006-12-28 15:33:33 +07:00
|
|
|
ls -lsa $ADEMPIERE_HOME/data/Adempiere${SUFFIX}.dmp
|
2006-11-17 10:14:43 +07:00
|
|
|
echo Press enter to continue ...
|
|
|
|
read in
|
|
|
|
|
|
|
|
# Parameter: <systemAccount> <AdempiereID> <AdempierePwd>
|
2007-10-10 10:42:04 +07:00
|
|
|
# globalqss - cruiz - 2007-10-09 - added fourth parameter for postgres(ignored in oracle)
|
|
|
|
sh $ADEMPIERE_DB_PATH/ImportAdempiere.sh $SYSUSER/$ADEMPIERE_DB_SYSTEM $ADEMPIERE_DB_USER $ADEMPIERE_DB_PASSWORD $ADEMPIERE_DB_SYSTEM
|
2008-02-13 13:24:51 +07:00
|
|
|
|
2008-10-25 05:29:40 +07:00
|
|
|
sh $ADEMPIERE_HOME/utils/RUN_SignDatabaseBuild.sh > /dev/null 2>&1
|