Merge pull request #481 from elia/master

Ensure the app is really running before killing it
This commit is contained in:
rhy-jot
2014-03-08 17:45:20 -05:00

2
dokku
View File

@@ -60,7 +60,7 @@ case "$1" in
# kill the app when running
if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then
oldid=$(< "$DOKKU_ROOT/$APP/CONTAINER")
docker kill $oldid > /dev/null 2>&1 || true
docker inspect $oldid &> /dev/null && docker kill $oldid > /dev/null
fi
# start the app