1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-06-30 22:50:14 +02:00

fixed check gunicorn process

This commit is contained in:
Galonza Peter 2021-10-24 01:43:00 +03:00
parent c9b792c370
commit 37b6161075

View File

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