From fe9e9852964ddfb35a7bb9faf7d61131d90bea5c Mon Sep 17 00:00:00 2001 From: tuutti Date: Thu, 30 Nov 2023 06:54:19 +0200 Subject: [PATCH] Added new autoupdated files, remove old migrate-status.php file --- src/Drush/Commands/UpdateDrushCommands.php | 3 +++ src/Update/migrations.php | 10 ++++++++++ 2 files changed, 13 insertions(+) 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.']); +}