Skip to content

Commit

Permalink
Automatic update plugins at upgrade?
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Dec 28, 2022
1 parent 3a96823 commit 4805a37
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions snappymail/v/0.0.0/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,16 @@
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;
*/

}

0 comments on commit 4805a37

Please sign in to comment.