Fixes OpenShift stop script which caused issues with git push

This commit is contained in:
fabianofranz
2014-09-17 13:14:25 -03:00
parent a4cc65c6a4
commit 49b9e3f278

View File

@@ -1,7 +1,8 @@
#!/bin/bash
source $OPENSHIFT_CARTRIDGE_SDK_BASH
if [ -z "$(ps -ef | grep commafeed | grep -v grep)" ]
if [ -z "$(ps -ef | grep commafeed.jar | grep -v grep)" ]
then
client_result "Application is already stopped"
else
kill `ps -ef | grep commafeed | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
kill `ps -ef | grep commafeed.jar | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
fi