Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: decomission apps templateeditor and extract
- Loading branch information
1 parent
199492c
commit ab40f54
Showing
4 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Bugfix: decommission of templateeditor and extract apps | ||
|
||
https://github.com/owncloud/core/pull/41168 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
namespace OC\Core\Migrations; | ||
|
||
use OCP\Migration\ISimpleMigration; | ||
use OCP\Migration\IOutput; | ||
|
||
/** | ||
* Disable templateeditor and extract apps during the upgrade to 10.14.0 | ||
*/ | ||
class Version20240131000000 implements ISimpleMigration { | ||
/** | ||
* @param IOutput $out | ||
*/ | ||
public function run(IOutput $out) { | ||
if (!\OC::$server->getSystemConfig()->getValue('installed', false)) { | ||
// Do nothing if ownCloud isn't installed yet (initial installation) | ||
return; | ||
} | ||
|
||
$appManager = \OC::$server->getAppManager(); | ||
$apps_to_disable = ['templateeditor', 'extract']; | ||
foreach ($apps_to_disable as $app) { | ||
if ($appManager->isInstalled($app)) { | ||
$appManager->disableApp($app); | ||
$out->warning("The $app app is deprecated and obsolete. It has been disabled."); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters