mirror of
https://github.com/unraid/webgui.git
synced 2026-01-14 13:39:58 -06:00
Merge pull request #258 from Squidly271/pluginMan-No-install
Add ability for pluginMan to not install the .plg file
This commit is contained in:
@@ -495,9 +495,13 @@ if ($method == "install") {
|
||||
// Bergware change: add user or system plugin selection - deprecated
|
||||
$plugintype = plugin("plugintype", $plugin_file, $error);
|
||||
$target = $plugintype != "system" ? "/boot/config/plugins/$plugin" : "/boot/plugins/$plugin";
|
||||
if ($target != $plugin_file) copy($plugin_file, $target);
|
||||
symlink($target, "/var/log/plugins/$plugin");
|
||||
if ( ! plugin("noInstall",$plugin_file,$error) ) {
|
||||
if ($target != $plugin_file) copy($plugin_file, $target);
|
||||
symlink($target, "/var/log/plugins/$plugin");
|
||||
echo "plugin: installed\n";
|
||||
} else {
|
||||
echo "Script: executed\n";
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user