FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit ef12d727 authored by Vitor Trovisco's avatar Vitor Trovisco
Browse files

Update weekly_export1.sh

parent 460579b9
No related branches found
No related tags found
No related merge requests found
......@@ -26,12 +26,12 @@ EXPORT_FILENAME=canto_server_export_latest.json
log "Exporting approved sessions into ${EXPORT_DIR}"
bash /etc/init.d/canto stop
/etc/init.d/canto stop
if ./canto/script/canto_docker ./script/canto_export.pl canto-json --export-curator-names --export-approved > "${EXPORT_DIR}/${EXPORT_FILENAME}"; then
log "Export successful"
bash /etc/init.d/canto start
/etc/init.d/canto start
if [[ -e "${EXPORT_DIR}/${EXPORT_FILENAME}" ]]; then
......@@ -57,7 +57,7 @@ if ./canto/script/canto_docker ./script/canto_export.pl canto-json --export-cura
else
log "Export failed - cannot continue"
bash /etc/init.d/canto start
/etc/init.d/canto start
fi
exit
......
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