From e6627013ae91a1c8ff8380fbd6e11b10a624c24f Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Tue, 24 Mar 2020 00:57:45 -0700 Subject: [PATCH] Exclude self --- src/scripts/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/entrypoint.sh b/src/scripts/entrypoint.sh index 7c902c8..f2101fd 100644 --- a/src/scripts/entrypoint.sh +++ b/src/scripts/entrypoint.sh @@ -31,7 +31,7 @@ while [ true ]; do # Make sure we do not run container empty (without nginx process). # If nginx quit for whatever reason then stop the container. # Leave the restart decision to the container orchestration. - if ! ps aux | grep --quiet nginx ; then + if ! ps aux | grep --quiet [n]ginx ; then exit 1 fi