Commit ea12a6ac19b6fb9b8a862acbcae13206045a01be

Authored by Paulo Graça
1 parent 1705e05102

fix check sql query

dspace/bin/RCAAP-packager-export_verify-items.sh
... ... @@ -76,7 +76,7 @@ if [ -z "$BACKUP_DIR" ]; then
76 76 fi
77 77  
78 78 #first, retrive the number of archived items in database
79   -NUMBER_ITEMS=(`echo "SELECT count(*) FROM item WHERE in_archive=TRUE AND discoverable=TRUE;" | psql -tU postgres dspace|sed 's| ||g'`)
  79 +NUMBER_ITEMS=(`echo "SELECT count(*) FROM item WHERE in_archive=TRUE;" | psql -tU postgres dspace|sed 's| ||g'`)
80 80  
81 81 #export AIP packages
82 82 ${SCRIPTPATH}/dspace packager -d -a -u -t AIP -e ${EMAIL} -i ${HANDLE_PREFIX}/0 ${BACKUP_DIR}/sitewide-aip.zip &> ${LOG_FILE}
... ... @@ -88,4 +88,4 @@ if [ "$NUMBER_BACKUPS" = "$NUMBER_ITEMS" ]; then
88 88 echo "1" > ${RESULT_FILE_NAME}
89 89 else
90 90 echo "0" > ${RESULT_FILE_NAME}
91 91 -fi
  92 +fi
92 93 \ No newline at end of file
... ...