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:
Squidly271
2017-03-24 04:26:31 -04:00
committed by GitHub
parent 4f2d0ccdfd
commit 577cd0c335

View File

@@ -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");