diff --git a/src/Drush/Commands/UpdateDrushCommands.php b/src/Drush/Commands/UpdateDrushCommands.php index 3e63c55..7638f7b 100644 --- a/src/Drush/Commands/UpdateDrushCommands.php +++ b/src/Drush/Commands/UpdateDrushCommands.php @@ -237,7 +237,9 @@ private function updateDefaultFiles(UpdateOptions $options) : self { 'public/sites/default/azure.settings.php', 'public/sites/default/settings.php', 'docker/openshift/custom.locations', + 'docker/openshift/init.sh', 'docker/openshift/Dockerfile', + 'docker/openshift/entrypoints/10-preflight.sh', 'docker/openshift/entrypoints/20-deploy.sh', 'docker/openshift/crons/content-scheduler.sh', 'docker/openshift/crons/migrate-status.php', @@ -246,6 +248,7 @@ private function updateDefaultFiles(UpdateOptions $options) : self { 'docker/openshift/crons/purge-queue.sh', 'docker/openshift/crons/update-translations.sh', 'docker/openshift/crons/pubsub.sh', + 'docker/openshift/preflight/preflight.php', 'docker/openshift/notify.php', 'docker-compose.yml', 'phpunit.xml.dist', diff --git a/src/Update/migrations.php b/src/Update/migrations.php index dca9f44..0216289 100644 --- a/src/Update/migrations.php +++ b/src/Update/migrations.php @@ -105,3 +105,13 @@ function drupal_tools_update_3() : UpdateResult { } return new UpdateResult(['Attempted to install: ' . implode(' ', $packages)]); } + +/** + * Remove leftover files. + */ +function drupal_tools_update_4(UpdateOptions $options, FileManager $fileManager) : UpdateResult { + $fileManager->removeFiles($options, [ + 'docker/openshift/crons/migrate-status.php', + ]); + return new UpdateResult(['Attempted to remove migrate-status.php file.']); +}