FAQ | This is a LIVE service | Changelog

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

Write log into canto space

Additional additions to .gitignore
parent 000ecfb2
No related branches found
No related tags found
1 merge request!6Testing
canto
\ No newline at end of file
canto
canto_weekly.log
\ No newline at end of file
......@@ -6,7 +6,7 @@
CANTOSPACE="/data/export/canto-space"
# Define log file
LOGFILE="/var/log/canto_weekly.log"
LOGFILE="{$CANTOSPACE}/canto_weekly.log"
# Function to log messages with date stamp
# e.g. log "Canto script completed successfully"
......@@ -178,6 +178,11 @@ if [[ ( -e "${CURATEDPAPERLISTFILE}" ) && ( -s "${CURATEDPAPERLISTFILE}" ) ]]; t
# 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 "${CURATEDPAPERLISTFILE}"
# copy ${CURATEDPAPERLISTFILE} into ${CANTOSPACE}
log "Copying ${CURATEDPAPERLISTFILE} into ${CANTOSPACE}"
cp "${CURATEDPAPERLISTFILE}" "${CANTOSPACE}"
else
log "Not loading ${JSONIMPORTFILE} into Canto. Either ${CURATEDPAPERLISTFILE} does not exist or is empty..."
fi
......@@ -197,4 +202,4 @@ if docker restart "${DOCKERNAME}"; then
log "Canto restarted successfully"
else
log "Canto failed to restart sucessfully!"
fi
fi
\ No newline at end of file
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