mirror of
https://github.com/unraid/webgui.git
synced 2026-03-14 06:51:27 -05:00
Remove the old temp .plg file on remove
plugincheck script doesn't check if a plugin is still installed. Only if the .plg still exists in /tmp/plugins. Update notices will happen until a reboot is issued
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