Automatic update plugins at upgrade?

This commit is contained in:
the-djmaze 2022-12-28 10:56:11 +01:00
parent 3a96823506
commit 4805a377c4

View file

@ -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;
*/
}