From bb2f3ec234211ab365d809ec7327f99fc48080bf Mon Sep 17 00:00:00 2001 From: bitterfox Date: Fri, 14 Feb 2020 14:06:11 +0900 Subject: [PATCH] Fix error on comparing sleep and 'last' while stopping --- redhat-init-jkoppe | 2 +- redhat-init-mingalevme | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/redhat-init-jkoppe b/redhat-init-jkoppe index 6abeb25..1d9dea1 100755 --- a/redhat-init-jkoppe +++ b/redhat-init-jkoppe @@ -58,7 +58,7 @@ stop() { echo "Supervisord exited as expected in under $total_sleep seconds" break else - if [[ $sleep -eq "last" ]] ; then + if [[ $sleep = "last" ]] ; then echo "Supervisord still working on shutting down. We've waited roughly 60 seconds, we'll let it do its thing from here" return 1 else diff --git a/redhat-init-mingalevme b/redhat-init-mingalevme index 51a0c7e..d80f661 100755 --- a/redhat-init-mingalevme +++ b/redhat-init-mingalevme @@ -95,7 +95,7 @@ stop() { echo "Supervisord exited as expected in under $total_sleep seconds" break else - if [[ $sleep -eq "last" ]] ; then + if [[ $sleep = "last" ]] ; then echo "Supervisord still working on shutting down. We've waited roughly 60 seconds, we'll let it do its thing from here" return 1 else