mirror of
https://github.com/unraid/webgui.git
synced 2026-05-04 00:39:32 -05:00
Add post hook when download fails.
This commit is contained in:
@@ -585,6 +585,8 @@ if ($method == 'install') {
|
||||
if (!download($pluginURL, $plugin_file, $error)) {
|
||||
write("plugin: $error\n");
|
||||
@unlink($plugin_file);
|
||||
// run hook scripts for post processing
|
||||
post_hooks($error);
|
||||
done(1);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user