Skip to content

Commit

Permalink
Added new autoupdated files, remove old migrate-status.php file
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Nov 30, 2023
1 parent e16c123 commit fe9e985
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Drush/Commands/UpdateDrushCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down
10 changes: 10 additions & 0 deletions src/Update/migrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.']);
}

0 comments on commit fe9e985

Please sign in to comment.