From b457a82256f9274b0c0a78409b21653279f005d8 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 6 Sep 2015 19:26:50 -0400 Subject: [PATCH] Ensure container is running before attempting to delete files in the container --- commands | 1 + 1 file changed, 1 insertion(+) diff --git a/commands b/commands index 2a0b812..bd6bf9a 100755 --- a/commands +++ b/commands @@ -72,6 +72,7 @@ case "$1" in ID=$(cat "$SERVICE_ROOT/ID") dokku_log_verbose_quiet "Deleting container data" + service_start "$SERVICE" docker exec -it "$ID" chmod -R 777 /data service_stop "$SERVICE"