diff --git a/snappymail/v/0.0.0/setup.php b/snappymail/v/0.0.0/setup.php index c74f4ee9b..577ca8d87 100644 --- a/snappymail/v/0.0.0/setup.php +++ b/snappymail/v/0.0.0/setup.php @@ -166,4 +166,16 @@ if (defined('APP_VERSION')) file_put_contents($sFile, json_encode($config, JSON_PRETTY_PRINT)); } } + +/* + // Update plugins + $asApi = !empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API']); + $_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true; + $aList = \SnappyMail\Repository::getEnabledPackagesNames(); + foreach ($aList as $sId) { + \SnappyMail\Repository::installPackage('plugin', $sId); + } + $_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = $asApi; +*/ + }