Exclude self

This commit is contained in:
Elliot Saba 2020-03-24 00:57:45 -07:00
parent 4fa974585c
commit e6627013ae
1 changed files with 1 additions and 1 deletions

View File

@ -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