diff options
author | M. Dent <dentm42@gmail.com> | 2018-12-19 10:12:59 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-12-19 10:12:59 +0100 |
commit | 0e5d76e7359d3f38b971138069a239ae4ef171eb (patch) | |
tree | e58dd1029d7c9c514c946a4e9a046231b9a6b3ef | |
parent | fe80f8179c81a17b3cb429f410b2da1cbd357ae5 (diff) | |
download | volse-hubzilla-0e5d76e7359d3f38b971138069a239ae4ef171eb.tar.gz volse-hubzilla-0e5d76e7359d3f38b971138069a239ae4ef171eb.tar.bz2 volse-hubzilla-0e5d76e7359d3f38b971138069a239ae4ef171eb.zip |
Add reload 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) { |