From 49b9e3f2784e9c090f7863727c1ed8988ac3e104 Mon Sep 17 00:00:00 2001 From: fabianofranz Date: Wed, 17 Sep 2014 13:14:25 -0300 Subject: [PATCH] Fixes OpenShift stop script which caused issues with git push --- .openshift/action_hooks/stop | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.openshift/action_hooks/stop b/.openshift/action_hooks/stop index 77d10b73..3cbaaff0 100755 --- a/.openshift/action_hooks/stop +++ b/.openshift/action_hooks/stop @@ -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