Skip to content

Commit 600cc6e

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(update): Correctly trigger update for auto-disabled local apps
When updating a local app we still need to run updateApp so that repair steps and migrations are correctly executed Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent c2f14f4 commit 600cc6e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/private/Updater.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,13 @@ private function upgradeAppStoreApps(array $apps, array $previousEnableStates =
385385
if ($this->installer->isUpdateAvailable($app)) {
386386
$this->emit('\OC\Updater', 'upgradeAppStoreApp', [$app]);
387387
$this->installer->updateAppstoreApp($app);
388+
} elseif (!empty($previousEnableStates)) {
389+
/**
390+
* When updating a local app we still need to run updateApp
391+
* so that repair steps and migrations are correctly executed
392+
* Ref: https://github.com/nextcloud/server/issues/53985
393+
*/
394+
\OC_App::updateApp($app);
388395
}
389396
$this->emit('\OC\Updater', 'checkAppStoreApp', [$app]);
390397

0 commit comments

Comments
 (0)