2008-11-05 20:09:05 +07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2006-11-17 10:14:43 +07:00
|
|
|
# $Id: RUN_DBRestore.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 Restore Adempiere Database from Export- $ADEMPIERE_HOME \($ADEMPIERE_DB_NAME\)
|
|
|
|
|
|
|
|
|
|
|
|
echo Re-Create Adempiere User and import $ADEMPIERE_HOME/data/ExpDat.dmp
|
|
|
|
echo == The import will show warnings. This is OK ==
|
|
|
|
ls -lsa $ADEMPIERE_HOME/data/ExpDat.dmp
|
|
|
|
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)
|
2008-12-07 07:57:00 +07:00
|
|
|
$ADEMPIERE_DB_PATH/DBRestore.sh system/$ADEMPIERE_DB_SYSTEM $ADEMPIERE_DB_USER $ADEMPIERE_DB_PASSWORD $ADEMPIERE_DB_SYSTEM
|
2008-02-13 13:24:51 +07:00
|
|
|
|
2008-12-07 07:57:00 +07:00
|
|
|
$ADEMPIERE_HOME/utils/RUN_SignDatabaseBuild.sh
|