FAQ | This is a LIVE service | Changelog

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

Tweak to docker restart code

parent aac25b68
No related branches found
No related tags found
1 merge request!6Testing
......@@ -161,14 +161,14 @@ CURATEDPAPERLISTFILE="fbrf_input_list.tsv"
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}"
JSONIMPORTFILE="./import_export/import-fbrfs.json"
JSONIMPORTFILE="/import_export/import-fbrfs.json"
# Test fbrf_input_list.tsv exists and isn't empty
if [[ ( -e "${CURATEDPAPERLISTFILE}" ) && ( -s "${CURATEDPAPERLISTFILE}" ) ]]; then
# make the json input file
log "Creating ${JSONIMPORTFILE}"
/usr/bin/perl /data/export/support_scripts/canto_json_input_maker.pl /data/export/support_scripts/modules_server.cfg "${CURATEDPAPERLISTFILE}" > "${JSONIMPORTFILE}"
/usr/bin/perl /data/export/support_scripts/canto_json_input_maker.pl /data/export/support_scripts/modules_server.cfg "${CURATEDPAPERLISTFILE}" > ".${JSONIMPORTFILE}"
# load the json file into canto
# VT comment: this next step make take some time, depending on the amount of new data
......@@ -191,7 +191,9 @@ else
fi
# Canto restart
if /etc/init.d/canto restart; then
# Get Container ID from output
DOCKERNAME=$(docker ps -a --filter status=running | awk '$2 ~ /pombase\/canto-run/ { print $1 }')
if docker restart "${DOCKERNAME}"; then
log "Canto restarted successfully"
else
log "Canto failed to restart sucessfully!"
......
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