fix: ensure any backup cron files are deleted when the service is destroyed

Closes dokku/dokku-redis#118
This commit is contained in:
Jose Diaz-Gonzalez
2018-12-02 05:10:06 -05:00
parent 5e5ad6d472
commit aa1a23d5a1

View File

@@ -38,6 +38,7 @@ service-destroy-cmd() {
fi
dokku_log_info2_quiet "Deleting $SERVICE"
service_backup_unschedule "$SERVICE"
if [[ -n $(docker ps -aq -f name="$SERVICE_NAME") ]]; then
dokku_log_verbose_quiet "Deleting container data"
service_stop "$SERVICE"