(HENGSIN-10) Problems with RUN_ImportAdempiere.sh

- Incorporate the improvement suggested by Carlos.
This commit is contained in:
Heng Sin Low 2010-12-16 16:53:12 +08:00
parent b561dde609
commit fff87cc023
2 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@
# $Id: ImportAdempiere.sh,v 1.10 2005/12/20 07:12:17 jjanke Exp $ # $Id: ImportAdempiere.sh,v 1.10 2005/12/20 07:12:17 jjanke Exp $
echo Adempiere Database Import $Revision: 1.10 $ echo Adempiere Database Import $Revision: 1.10 $
echo Importing Adempiere DB from $ADEMPIERE_HOME/data/Adempiere_pg.dmp echo Importing Adempiere DB from $ADEMPIERE_HOME/data/Adempiere_pg.dmp
if [ $# -le 2 ] if [ $# -le 2 ]
then then
echo "Usage: $0 <systemAccount> <AdempiereID> <AdempierePWD> <PostgresPwd>" echo "Usage: $0 <systemAccount> <AdempiereID> <AdempierePWD> <PostgresPwd>"
echo "Example: $0 postgres adempiere adempiere postgresPwd" echo "Example: $0 postgres adempiere adempiere postgresPwd"
@ -36,7 +36,7 @@ ADEMPIERE_CREATE_ROLE_SQL=
PGPASSWORD=$3 PGPASSWORD=$3
export PGPASSWORD export PGPASSWORD
createdb -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -E UNICODE -O $2 -U $2 $ADEMPIERE_DB_NAME createdb --template=template0 -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -E UNICODE -O $2 -U $2 $ADEMPIERE_DB_NAME
echo ------------------------------------- echo -------------------------------------
echo Import Adempiere_pg.dmp echo Import Adempiere_pg.dmp

View File

@ -24,7 +24,7 @@
@set ADEMPIERE_CREATE_ROLE_SQL= @set ADEMPIERE_CREATE_ROLE_SQL=
@set PGPASSWORD=%3 @set PGPASSWORD=%3
@createdb -h %ADEMPIERE_DB_SERVER% -p %ADEMPIERE_DB_PORT% -E UNICODE -O %2 -U %2 %ADEMPIERE_DB_NAME% @createdb --template=template0 -h %ADEMPIERE_DB_SERVER% -p %ADEMPIERE_DB_PORT% -E UNICODE -O %2 -U %2 %ADEMPIERE_DB_NAME%
@echo ------------------------------------- @echo -------------------------------------
@echo Import Adempiere_pg.dmp @echo Import Adempiere_pg.dmp