diff options
author | Max Kostikov <max@kostikov.co> | 2018-12-20 20:51:26 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-12-20 20:51:26 +0100 |
commit | 89e734dcca1525fa804343d6ecf5286ce70b05ba (patch) | |
tree | 10d0a3614e9f97f5065ea53fff1c3d5fcd292c16 /util/addons | |
parent | 3a662555768840d18c6dbba027af644eda54f20e (diff) | |
parent | 090fe394e4733aea9e9ca2e9a93c2c27b266d065 (diff) | |
download | volse-hubzilla-89e734dcca1525fa804343d6ecf5286ce70b05ba.tar.gz volse-hubzilla-89e734dcca1525fa804343d6ecf5286ce70b05ba.tar.bz2 volse-hubzilla-89e734dcca1525fa804343d6ecf5286ce70b05ba.zip |
Merge branch 'dev' into 'dev'
Sync dev
See merge request kostikov/core!1
Diffstat (limited to 'util/addons')
-rwxr-xr-x | util/addons | 15 |
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) { |