Merge pull request #342 from plietar/no-container

Don't fail if CONTAINER is inexistant.
This commit is contained in:
rhy-jot committed 2013-11-27 13:18:31 -08:00
commit c317dca558
3 files changed
+15 -10

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ case "$1" in
pluginhook pre-deploy $APP $IMAGE
# kill the app when running
if [[ -f "$DOKKU_ROOT/$APP/PORT" ]]; then
if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then
oldid=$(< "$DOKKU_ROOT/$APP/CONTAINER")
docker kill $oldid > /dev/null
fi