mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 22:17:25 -04:00
update plugin uninstall
This commit is contained in:
parent
d57a50af3b
commit
5babf40023
1 changed files with 12 additions and 2 deletions
|
@ -664,9 +664,19 @@ namespace Emby.Server.Implementations.Updates
|
||||||
// Remove it the quick way for now
|
// Remove it the quick way for now
|
||||||
_applicationHost.RemovePlugin(plugin);
|
_applicationHost.RemovePlugin(plugin);
|
||||||
|
|
||||||
_logger.Info("Deleting plugin file {0}", plugin.AssemblyFilePath);
|
var path = plugin.AssemblyFilePath;
|
||||||
|
_logger.Info("Deleting plugin file {0}", path);
|
||||||
|
|
||||||
_fileSystem.DeleteFile(plugin.AssemblyFilePath);
|
// Make this case-insensitive to account for possible incorrect assembly naming
|
||||||
|
var file = _fileSystem.GetFilePaths(path)
|
||||||
|
.FirstOrDefault(i => string.Equals(i, path, StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(file))
|
||||||
|
{
|
||||||
|
path = file;
|
||||||
|
}
|
||||||
|
|
||||||
|
_fileSystem.DeleteFile(path);
|
||||||
|
|
||||||
OnPluginUninstalled(plugin);
|
OnPluginUninstalled(plugin);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue