don't ask password on DBExport for postgresql
This commit is contained in:
parent
fe8f79a3b6
commit
49c65f0d39
|
@ -9,7 +9,9 @@
|
|||
@Rem Must have parameter: userAccount
|
||||
@if (%1) == () goto usage
|
||||
|
||||
@set PGPASSWORD=%2
|
||||
pg_dump -U %1 %ADEMPIERE_DB_NAME% > %ADEMPIERE_HOME%\data\ExpDat.dmp
|
||||
@set PGPASSWORD=
|
||||
|
||||
@cd %ADEMPIERE_HOME%\Data
|
||||
@jar cvfM ExpDat.jar ExpDat.dmp
|
||||
|
|
|
@ -18,7 +18,9 @@ if [ "$ADEMPIERE_HOME" = "" -o "$ADEMPIERE_DB_NAME" = "" ]
|
|||
exit 1
|
||||
fi
|
||||
|
||||
export PGPASSWORD=$2
|
||||
pg_dump -U $1 $ADEMPIERE_DB_NAME > $ADEMPIERE_HOME/data/ExpDat.dmp
|
||||
export PGPASSWORD=
|
||||
|
||||
cd $ADEMPIERE_HOME/data
|
||||
jar cvfM ExpDat.jar ExpDat.dmp ExpDat.log
|
||||
|
|
Loading…
Reference in New Issue