Don't fail if CONTAINER is inexistant.

This commit is contained in:
Paul Lietar committed 2013-11-22 22:58:02 +00:00
1 parent e42c028d18
commit 8a9182c859
3 files changed
+15 -10

No files matched your search

+1 -1
View File
@@ -52,7 +52,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