mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-08-28 07:51:13 +00:00
fixed check gunicorn process
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user