fix
This commit is contained in:
parent
ce68165eef
commit
fa6dd0fa95
@ -1 +1 @@
|
|||||||
1.0.8
|
1.0.9
|
||||||
|
|||||||
@ -19,8 +19,17 @@ is_container_running() {
|
|||||||
|
|
||||||
|
|
||||||
if [ -z ${date_to_load} ] ; then
|
if [ -z ${date_to_load} ] ; then
|
||||||
echo "Yesterday data has priority. Running historical container will be killed"
|
echo "Yesterday data has priority. Running historical container will be stopped"
|
||||||
docker kill ${ContainerName}
|
Cmd="docker stop ${ContainerName}"
|
||||||
|
echo ${Cmd} && eval ${Cmd}
|
||||||
|
|
||||||
|
Cmd="docker ps"
|
||||||
|
echo ${Cmd} && eval ${Cmd}
|
||||||
|
|
||||||
|
if is_container_running "$ContainerName"; then
|
||||||
|
echo "Container ${ContainerName} is still running."
|
||||||
|
exit 3
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Historical run ${date_to_load}"
|
echo "Historical run ${date_to_load}"
|
||||||
if is_container_running "$ContainerName"; then
|
if is_container_running "$ContainerName"; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user