aboutsummaryrefslogtreecommitdiffstats
path: root/util/addons
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2018-12-19 09:12:59 +0000
committerMario <mario@mariovavti.com>2018-12-22 19:43:16 +0100
commit19952264c8eee9cb5a9dac9642bfd28fc34d91df (patch)
tree6c09c9c425dd91bb2572a093b3a3809883c14656 /util/addons
parent5ec1e97cae429e2554e89f6df9a704b3ddd36993 (diff)
downloadvolse-hubzilla-19952264c8eee9cb5a9dac9642bfd28fc34d91df.tar.gz
volse-hubzilla-19952264c8eee9cb5a9dac9642bfd28fc34d91df.tar.bz2
volse-hubzilla-19952264c8eee9cb5a9dac9642bfd28fc34d91df.zip
Add reload to util/addons
(cherry picked from commit 0e5d76e7359d3f38b971138069a239ae4ef171eb)
Diffstat (limited to 'util/addons')
-rwxr-xr-xutil/addons15
1 files changed, 15 insertions, 0 deletions
diff --git a/util/addons b/util/addons
index 3d772bf73..7bd70984e 100755
--- a/util/addons
+++ b/util/addons
@@ -10,6 +10,7 @@ echo <<< EOT
util/addons list all # list all addons (*)= installed, (!)= disabled due to version compatibility
util/addons install foo # install addon named 'foo'
util/addons uninstall foo # uninstall addon named 'foo'
+ util/addons reinstall # reinstall all plugins
EOT;
}
@@ -68,6 +69,20 @@ if($argc == 2 && $argv[1] === 'list') {
killme();
}
+if($argc == 2 && $argv[1] === 'reinstall') {
+ require_once("include/plugin.php");
+ if($plugins) {
+ foreach($plugins as $p) {
+ if($p[1]) {
+ echo "Reinstall: ". $p[0] . "\n";
+ uninstall_plugin($p[0]);
+ install_plugin($p[0]);
+ }
+ }
+ }
+ killme();
+}
+
if($argc == 3 && $argv[1] === 'list' && $argv[2] === 'all') {
if($plugins) {