diff --git a/docker/openshift/crons/base.sh b/docker/openshift/crons/base.sh index 47a69fa0..a656fa5a 100644 --- a/docker/openshift/crons/base.sh +++ b/docker/openshift/crons/base.sh @@ -1,22 +1,6 @@ #!/bin/bash -# Checking if a new deployment is in progress, as we should not run cron while deploying. -if [ ! -n "$OPENSHIFT_BUILD_NAME" ]; then - echo "OPENSHIFT_BUILD_NAME is not defined. Exiting early." - exit 1 -fi - -while [ "$(drush state:get deploy_id)" != "$OPENSHIFT_BUILD_NAME" ] -do - echo "Current deploy_id $OPENSHIFT_BUILD_NAME not found in state. Probably a deployment is in progress - waiting for completion..." - sleep 60 -done - -while [ "$(drush state:get system.maintenance_mode)" = "1" ] -do - echo "Maintenance mode on. Probably a deployment is in progress - waiting for completion..." - sleep 60 -done +source /init.sh echo "Starting cron: $(date)"