From 37b616107500e4c93292cebda6fd25bb440423b5 Mon Sep 17 00:00:00 2001
From: Galonza Peter
Date: Sun, 24 Oct 2021 01:43:00 +0300
Subject: [PATCH] fixed check gunicorn process
---
src/wgd.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wgd.sh b/src/wgd.sh
index 604dba6..2e03453 100755
--- a/src/wgd.sh
+++ b/src/wgd.sh
@@ -43,7 +43,7 @@ install_wgd(){
check_wgd_status(){
if [[ $environment == 'production' ]]; then
- if ps aux | grep -v grep | cat ./gunicorn.pid > /dev/null; then
+ if ps aux | grep -v grep | grep $(cat ./gunicorn.pid) > /dev/null; then
return 0
else
return 1