IDEMPIERE-3655 Improve installer to include migration scripts and syncApplied / make script silent if no SQL files in folder

This commit is contained in:
Carlos Ruiz 2018-03-16 09:23:48 -03:00
parent 79ffb1fe76
commit 490adbe45d
2 changed files with 2 additions and 2 deletions

View File

@ -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
do
cd "${FOLDER}"
ls *.sql >> $TMPFOLDER/lisFS_$$.txt
ls *.sql 2>/dev/null >> $TMPFOLDER/lisFS_$$.txt
cd $IDEMPIERE_HOME/migration
done
sort -o $TMPFOLDER/lisFS_$$.txt $TMPFOLDER/lisFS_$$.txt

View File

@ -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
do
cd "${FOLDER}"
ls *.sql >> $TMPFOLDER/lisFS_$$.txt
ls *.sql 2>/dev/null >> $TMPFOLDER/lisFS_$$.txt
cd $IDEMPIERE_HOME/migration
done
sort -o $TMPFOLDER/lisFS_$$.txt $TMPFOLDER/lisFS_$$.txt