mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-13 00:24:24 +08:00
On upgrade also update plugins in Nextcloud due to many misunderstandings and prevent invalid open issues
This commit is contained in:
parent
94d33a6daf
commit
34543d5bf3
3 changed files with 19 additions and 9 deletions
|
@ -34,3 +34,8 @@
|
||||||
* Additional configuration file name
|
* Additional configuration file name
|
||||||
*/
|
*/
|
||||||
//define('APP_CONFIGURATION_NAME', $_SERVER['HTTP_HOST'].'.ini');
|
//define('APP_CONFIGURATION_NAME', $_SERVER['HTTP_HOST'].'.ini');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Also update extensions on upgrade
|
||||||
|
*/
|
||||||
|
//define('SNAPPYMAIL_UPDATE_PLUGINS', 1);
|
||||||
|
|
|
@ -42,3 +42,8 @@ if (class_exists('OC')) {
|
||||||
* Additional configuration file name
|
* Additional configuration file name
|
||||||
*/
|
*/
|
||||||
//define('APP_CONFIGURATION_NAME', $_SERVER['HTTP_HOST'].'.ini');
|
//define('APP_CONFIGURATION_NAME', $_SERVER['HTTP_HOST'].'.ini');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Also update extensions on upgrade
|
||||||
|
*/
|
||||||
|
define('SNAPPYMAIL_UPDATE_PLUGINS', 1);
|
||||||
|
|
|
@ -167,15 +167,15 @@ if (defined('APP_VERSION'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
if (defined('SNAPPYMAIL_UPDATE_PLUGINS')) {
|
||||||
// Update plugins
|
// Update plugins
|
||||||
$asApi = !empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API']);
|
$asApi = !empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API']);
|
||||||
$_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true;
|
$_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true;
|
||||||
$aList = \SnappyMail\Repository::getEnabledPackagesNames();
|
$aList = \SnappyMail\Repository::getEnabledPackagesNames();
|
||||||
foreach ($aList as $sId) {
|
foreach ($aList as $sId) {
|
||||||
\SnappyMail\Repository::installPackage('plugin', $sId);
|
\SnappyMail\Repository::installPackage('plugin', $sId);
|
||||||
|
}
|
||||||
|
$_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = $asApi;
|
||||||
}
|
}
|
||||||
$_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = $asApi;
|
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue