Merge pull request #97 from Squidly271/patch-6

Remove the old temp .plg file on remove
This commit is contained in:
tom mortensen
2017-03-24 14:22:17 -07:00
committed by GitHub

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