diff --git a/configs/docker/run/runDockerEWS.sh b/configs/docker/run/runDockerEWS.sh index ac418845e2426d45c620dbc0f95124dcc3940d06..fbc25b250fa0455fff2f201cf249c1766b5f0be4 100755 --- a/configs/docker/run/runDockerEWS.sh +++ b/configs/docker/run/runDockerEWS.sh @@ -56,7 +56,21 @@ do esac done - +if [ "$component" = "Environment" ]; then + component_script="run_Environment_Processor.sh" +elif [ "$component" = "Deposition" ];then + component_script="run_Deposition_Processor.sh" +elif [ "$component" = "Survey" ];then + component_script="run_Survey_Processor.sh" +elif [ "$component" = "Advisory" ];then + component_script="run_Advisory_Processor.sh" +elif [ "$component" = "Scraper" ];then + component_script="run_Environment_Processor.sh" +elif [ "$component" = "Epidemiology" ];then + component_script="run_Epidemiology_Processor.sh" +else + printf "component '%s' not recognised" "$component" +fi function run_coordinator() { printf "component: %s\nconfig: %s\nrundate: %s\n" "$component" "$config" "$rundate" @@ -64,7 +78,7 @@ function run_coordinator() { docker container ls; docker exec \ ews_runner \ - /storage/app/EWS_prod/code/coordinator/scripts/run_Processor.sh \ + /storage/app/EWS_prod/code/coordinator/scripts/"${component_script}" \ -p "$component" \ -c "$config" \ -s "$rundate" \