core-jgi/utils/RUN_ImportReference.sh

27 lines
763 B
Bash
Raw Normal View History

2006-11-17 10:14:43 +07:00
#!/bin/sh
#
# $Id: RUN_ImportReference.sh,v 1.11 2005/12/13 00:17:54 jjanke Exp $
if [ $ADEMPIERE_HOME ]; then
cd $ADEMPIERE_HOME/utils
fi
. ./myEnvironment.sh Server
echo Import Reference - $ADEMPIERE_HOME \($ADEMPIERE_DB_NAME\)
2007-11-02 16:51:12 +07:00
SUFFIX=""
SYSUSER=system
if [ $ADEMPIERE_DB_PATH = "postgresql" ]
then
SUFFIX="_pg"
SYSUSER=postgres
fi
2006-11-17 10:14:43 +07:00
echo Re-Create Reference User and import $ADEMPIERE_HOME/data/Adempiere.dmp - \($ADEMPIERE_DB_NAME\)
echo == The import will show warnings. This is OK ==
2007-11-02 16:51:12 +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-11-02 16:51:12 +07:00
sh $ADEMPIERE_DB_PATH/ImportAdempiere.sh $SYSUSER/$ADEMPIERE_DB_SYSTEM reference reference $ADEMPIERE_DB_SYSTEM