mirror of
https://github.com/UnRAIDES/unRAID-NerdTools
synced 2025-04-12 10:33:42 +00:00
fix delete packages from users
This commit is contained in:
parent
e2f90c0b55
commit
3c3fbab197
BIN
archive/NerdTools-2022.10.06-x86_64-1.txz
Normal file
BIN
archive/NerdTools-2022.10.06-x86_64-1.txz
Normal file
Binary file not shown.
|
@ -3,8 +3,8 @@
|
||||||
<!DOCTYPE PLUGIN [
|
<!DOCTYPE PLUGIN [
|
||||||
<!ENTITY name "NerdTools">
|
<!ENTITY name "NerdTools">
|
||||||
<!ENTITY author "UnRAIDES">
|
<!ENTITY author "UnRAIDES">
|
||||||
<!ENTITY version "2022.10.05">
|
<!ENTITY version "2022.10.06">
|
||||||
<!ENTITY md5 "e7e64da9ebf0f9028305bcb8fe11d858">
|
<!ENTITY md5 "13ef1692a3259f149692fa213e39f5b1">
|
||||||
<!ENTITY launch "Settings/&name;">
|
<!ENTITY launch "Settings/&name;">
|
||||||
<!ENTITY github "UnRAIDES/unRAID-&name;">
|
<!ENTITY github "UnRAIDES/unRAID-&name;">
|
||||||
<!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/main/plugin/&name;.plg">
|
<!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/main/plugin/&name;.plg">
|
||||||
|
|
|
@ -128,7 +128,7 @@ foreach ($pkg_cfg as $pkg_name => $pkg_pref) { // get preferences for each packa
|
||||||
logger("$pkg_name in use by another plugin, not uninstalled.",$argq);
|
logger("$pkg_name in use by another plugin, not uninstalled.",$argq);
|
||||||
}else{
|
}else{
|
||||||
$pkg_msg = 'Uninstalling and deleting';
|
$pkg_msg = 'Uninstalling and deleting';
|
||||||
$pkg_cmd = 'removepkg '.$pkg_extra_path.$pkg_name.'* 2>&1; rm '.$pkg_extra_path.$pkg_name.'* 2>&1';
|
$pkg_cmd = 'removepkg '.$pkg_extra_path.$pkg_name.'*_nerdtools.txz 2>&1; rm '.$pkg_extra_path.$pkg_name.'*_nerdtools.txz 2>&1';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,8 +155,8 @@ foreach ($pkg_cfg as $pkg_name => $pkg_pref) { // get preferences for each packa
|
||||||
}
|
}
|
||||||
logger('Cleaning up packages...');
|
logger('Cleaning up packages...');
|
||||||
|
|
||||||
$cmd = "find ".$pkg_extra_path." -type f ! -name 'packages.json' ! -name 'packages-desc'".$pkg_find." -delete 2>&1";
|
#$cmd = "find ".$pkg_extra_path." -type f ! -name 'packages.json' ! -name 'packages-desc'".$pkg_find." -delete 2>&1";
|
||||||
shell_exec($cmd);
|
#shell_exec($cmd);
|
||||||
|
|
||||||
logger('All packages processed...');
|
logger('All packages processed...');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user