mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
Fixes OpenShift stop script which caused issues with git push
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source $OPENSHIFT_CARTRIDGE_SDK_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
|
then
|
||||||
client_result "Application is already stopped"
|
client_result "Application is already stopped"
|
||||||
else
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user