Ensure container is running before attempting to delete files in the container

This commit is contained in:
Jose Diaz-Gonzalez
2015-09-06 19:26:50 -04:00
parent f1ac4bbe71
commit b457a82256

View File

@@ -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"