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:07 -05:00
parent f2a802819f
commit 28a8a0f84e

View File

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