IDEMPIERE-3655 Improve installer to include migration scripts and syncApplied / make script silent if no SQL files in folder
This commit is contained in:
parent
79ffb1fe76
commit
490adbe45d
|
@ -46,7 +46,7 @@ select name from ad_migrationscript;" | $SILENTCMD | sed -e 's:^ ::' | grep -v '
|
||||||
find -type d -name $ADEMPIERE_DB_PATH | grep -v "./processes_post_migration/$ADEMPIERE_DB_PATH" | while read FOLDER
|
find -type d -name $ADEMPIERE_DB_PATH | grep -v "./processes_post_migration/$ADEMPIERE_DB_PATH" | while read FOLDER
|
||||||
do
|
do
|
||||||
cd "${FOLDER}"
|
cd "${FOLDER}"
|
||||||
ls *.sql >> $TMPFOLDER/lisFS_$$.txt
|
ls *.sql 2>/dev/null >> $TMPFOLDER/lisFS_$$.txt
|
||||||
cd $IDEMPIERE_HOME/migration
|
cd $IDEMPIERE_HOME/migration
|
||||||
done
|
done
|
||||||
sort -o $TMPFOLDER/lisFS_$$.txt $TMPFOLDER/lisFS_$$.txt
|
sort -o $TMPFOLDER/lisFS_$$.txt $TMPFOLDER/lisFS_$$.txt
|
||||||
|
|
|
@ -43,7 +43,7 @@ echo "select name from ad_migrationscript" | $SILENTCMD | sed -e 's:^ ::' | grep
|
||||||
find -type d -name $ADEMPIERE_DB_PATH | grep -v "./processes_post_migration/$ADEMPIERE_DB_PATH" | while read FOLDER
|
find -type d -name $ADEMPIERE_DB_PATH | grep -v "./processes_post_migration/$ADEMPIERE_DB_PATH" | while read FOLDER
|
||||||
do
|
do
|
||||||
cd "${FOLDER}"
|
cd "${FOLDER}"
|
||||||
ls *.sql >> $TMPFOLDER/lisFS_$$.txt
|
ls *.sql 2>/dev/null >> $TMPFOLDER/lisFS_$$.txt
|
||||||
cd $IDEMPIERE_HOME/migration
|
cd $IDEMPIERE_HOME/migration
|
||||||
done
|
done
|
||||||
sort -o $TMPFOLDER/lisFS_$$.txt $TMPFOLDER/lisFS_$$.txt
|
sort -o $TMPFOLDER/lisFS_$$.txt $TMPFOLDER/lisFS_$$.txt
|
||||||
|
|
Loading…
Reference in New Issue