IDEMPIERE-279 RUN_ImportAdempiere not working on server installer / unix part

This commit is contained in:
Carlos Ruiz 2012-05-28 18:27:41 -05:00
parent 16b108288c
commit 2277fec784
3 changed files with 9 additions and 6 deletions

View File

@ -18,7 +18,10 @@ fi
echo Re-Create Adempiere User and import $ADEMPIERE_HOME/data/Adempiere${SUFFIX}.dmp - \($ADEMPIERE_DB_NAME\) echo Re-Create Adempiere User and import $ADEMPIERE_HOME/data/Adempiere${SUFFIX}.dmp - \($ADEMPIERE_DB_NAME\)
echo == The import will show warnings. This is OK == echo == The import will show warnings. This is OK ==
ls -lsa $ADEMPIERE_HOME/data/Adempiere${SUFFIX}.dmp cd $ADEMPIERE_HOME/data/seed
jar xvf Adempiere${SUFFIX}.jar
cd $ADEMPIERE_HOME/utils
ls -lsa $ADEMPIERE_HOME/data/seed/Adempiere${SUFFIX}.dmp
echo Press enter to continue ... echo Press enter to continue ...
read in read in

View File

@ -3,7 +3,7 @@
# $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.dmp echo Importing Adempiere DB from $ADEMPIERE_HOME/data/seed/Adempiere.dmp
if [ $# -le 2 ] if [ $# -le 2 ]
then then
@ -29,8 +29,8 @@ sqlplus $1@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME @$ADEMPIER
echo ------------------------------------- echo -------------------------------------
echo Import Adempiere.dmp echo Import Adempiere.dmp
echo ------------------------------------- echo -------------------------------------
echo "imp $1@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME FILE=$ADEMPIERE_HOME/data/Adempiere.dmp FROMUSER=\(reference\) TOUSER=$2" echo "imp $1@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME FILE=$ADEMPIERE_HOME/data/seed/Adempiere.dmp FROMUSER=\(reference\) TOUSER=$2"
imp $1@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME FILE=$ADEMPIERE_HOME/data/Adempiere.dmp FROMUSER=\(reference\) TOUSER=$2 imp $1@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME FILE=$ADEMPIERE_HOME/data/seed/Adempiere.dmp FROMUSER=\(reference\) TOUSER=$2
echo ------------------------------------- echo -------------------------------------
echo Check System echo Check System

View File

@ -3,7 +3,7 @@
# $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/seed/Adempiere_pg.dmp
if [ $# -le 2 ] if [ $# -le 2 ]
then then
@ -43,7 +43,7 @@ echo Import Adempiere_pg.dmp
echo ------------------------------------- echo -------------------------------------
ADEMPIERE_ALTER_ROLE_SQL="ALTER ROLE $2 SET search_path TO adempiere, pg_catalog" ADEMPIERE_ALTER_ROLE_SQL="ALTER ROLE $2 SET search_path TO adempiere, pg_catalog"
psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $2 -c "$ADEMPIERE_ALTER_ROLE_SQL" psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $2 -c "$ADEMPIERE_ALTER_ROLE_SQL"
psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $2 -f $ADEMPIERE_HOME/data/Adempiere_pg.dmp psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $2 -f $ADEMPIERE_HOME/data/seed/Adempiere_pg.dmp
ADEMPIERE_ALTER_ROLE_SQL= ADEMPIERE_ALTER_ROLE_SQL=
PGPASSWORD= PGPASSWORD=
export PGPASSWORD export PGPASSWORD