FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 1cbf55f8 authored by James Nairn's avatar James Nairn
Browse files

Fixed issue with defining $CURATEDPAPERLISTFILE

The path to the file was not included so the check for exisitance/content was failing
parent a44247a0
No related branches found
No related tags found
1 merge request!6Testing
...@@ -157,9 +157,9 @@ fi ...@@ -157,9 +157,9 @@ fi
# if there are no new papers to add in a particular week, the output file, # if there are no new papers to add in a particular week, the output file,
# fbrf_input_list.tsv, will be empty # fbrf_input_list.tsv, will be empty
CURATEDPAPERLISTFILE="fbrf_input_list.tsv" CURATEDPAPERLISTFILE="/root/fbrf_input_list.tsv"
log "Creating ${CURATEDPAPERLISTFILE}" log "Creating ${CURATEDPAPERLISTFILE}"
/usr/bin/perl /data/export/support_scripts/get_fbrfs_to_add_to_canto.pl /data/export/support_scripts/modules_server.cfg > "/root/${CURATEDPAPERLISTFILE}" /usr/bin/perl /data/export/support_scripts/get_fbrfs_to_add_to_canto.pl /data/export/support_scripts/modules_server.cfg > "${CURATEDPAPERLISTFILE}"
JSONIMPORTFILE="/import_export/import-fbrfs.json" JSONIMPORTFILE="/import_export/import-fbrfs.json"
...@@ -177,7 +177,7 @@ if [[ ( -e "${CURATEDPAPERLISTFILE}" ) && ( -s "${CURATEDPAPERLISTFILE}" ) ]]; t ...@@ -177,7 +177,7 @@ if [[ ( -e "${CURATEDPAPERLISTFILE}" ) && ( -s "${CURATEDPAPERLISTFILE}" ) ]]; t
./canto/script/canto_docker ./script/canto_add.pl --sessions-from-json "${JSONIMPORTFILE}" "vmt25@cam.ac.uk" 7227 ./canto/script/canto_docker ./script/canto_add.pl --sessions-from-json "${JSONIMPORTFILE}" "vmt25@cam.ac.uk" 7227
# remove the fbrf_input_list.tsv file once done, so that the script doesn't try to add the same information again next time its run # remove the fbrf_input_list.tsv file once done, so that the script doesn't try to add the same information again next time its run
/bin/rm "/root/${CURATEDPAPERLISTFILE}" #/bin/rm "${CURATEDPAPERLISTFILE}"
else else
log "Not loading ${JSONIMPORTFILE} into Canto. Either ${CURATEDPAPERLISTFILE} does not exist or is empty..." log "Not loading ${JSONIMPORTFILE} into Canto. Either ${CURATEDPAPERLISTFILE} does not exist or is empty..."
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment