
SCRIPT_DIR="/home/ubuntu/preprint-similarity-search/server/deployment"

LOG_FILE="/home/ubuntu/preprint-similarity-search/server/data/update.log"

# Launch auto-updater VM at 00:03 AM on the 1st day of each month
3 0 1 * * ${SCRIPT_DIR}/launch-updater-vm.bash >> ${LOG_FILE} 2>&1

# Update backend and frontend data at 00:03 AM on the 2nd day of each month
3 0 2 * * ${SCRIPT_DIR}/update-data.bash >> ${LOG_FILE} 2>&1
