Ensure container is running before attempting to delete files in the container
This commit is contained in:
1
commands
1
commands
@@ -72,6 +72,7 @@ case "$1" in
|
|||||||
ID=$(cat "$SERVICE_ROOT/ID")
|
ID=$(cat "$SERVICE_ROOT/ID")
|
||||||
|
|
||||||
dokku_log_verbose_quiet "Deleting container data"
|
dokku_log_verbose_quiet "Deleting container data"
|
||||||
|
service_start "$SERVICE"
|
||||||
docker exec -it "$ID" chmod -R 777 /data
|
docker exec -it "$ID" chmod -R 777 /data
|
||||||
|
|
||||||
service_stop "$SERVICE"
|
service_stop "$SERVICE"
|
||||||
|
|||||||
Reference in New Issue
Block a user