mirror of
https://github.com/unraid/webgui.git
synced 2026-01-25 11:09:03 -06:00
Merge pull request #97 from Squidly271/patch-6
Remove the old temp .plg file on remove
This commit is contained in:
@@ -485,6 +485,7 @@ if ($method == "remove") {
|
||||
if ($installed_plugin_file !== false) {
|
||||
// remove the symlink
|
||||
unlink("/var/log/plugins/$plugin");
|
||||
@unlink("/tmp/plugins/$plugin");
|
||||
if (plugin("remove", $installed_plugin_file, $error) === false) {
|
||||
// but if can't remove, restore the symlink
|
||||
symlink($installed_plugin_file, "/var/log/plugins/$plugin");
|
||||
|
||||
Reference in New Issue
Block a user