VERSION: 2022.09.29k - execution permision to packagemanager

This commit is contained in:
jsavargas 2022-09-29 21:39:01 -03:00
parent 5ad95cfc0f
commit 54c7127042
6 changed files with 8 additions and 13 deletions

View File

@ -0,0 +1 @@
bab8d966063b49e791d898d7fb2b5559 NerdTools-2022.09.29k-x86_64-1.txz

Binary file not shown.

View File

@ -3,7 +3,7 @@
<!DOCTYPE PLUGIN [ <!DOCTYPE PLUGIN [
<!ENTITY name "NerdTools"> <!ENTITY name "NerdTools">
<!ENTITY author "UnRAIDES"> <!ENTITY author "UnRAIDES">
<!ENTITY version "2022.09.29j"> <!ENTITY version "2022.09.29k">
<!ENTITY launch "Settings/&name;"> <!ENTITY launch "Settings/&name;">
<!ENTITY gitURL "https://raw.githubusercontent.com/jsavargas/unRAID-&name;/2022.09.28"> <!ENTITY gitURL "https://raw.githubusercontent.com/jsavargas/unRAID-&name;/2022.09.28">
<!ENTITY pluginURL "&gitURL;/plugin/&name;.plg"> <!ENTITY pluginURL "&gitURL;/plugin/&name;.plg">

View File

@ -2,7 +2,6 @@
$plg_path = '/boot/config/plugins/NerdTools/'; // plugin path $plg_path = '/boot/config/plugins/NerdTools/'; // plugin path
$os_version = strtok(parse_ini_file('/etc/unraid-version')['version'], '.') . '.' . strtok('.'); $os_version = strtok(parse_ini_file('/etc/unraid-version')['version'], '.') . '.' . strtok('.');
$pkg_path = $plg_path; // package path
$pkg_path = $plg_path; // package path $pkg_path = $plg_path; // package path
if (!is_dir($pkg_path)) if (!is_dir($pkg_path))
mkdir($pkg_path); mkdir($pkg_path);
@ -23,7 +22,7 @@ $config_file = $plg_path.'NerdTools.cfg';
$pkg_cfg = file_exists($config_file) ? parse_ini_file($config_file) : []; $pkg_cfg = file_exists($config_file) ? parse_ini_file($config_file) : [];
// get array of downloaded packages // get array of downloaded packages
$pkgs_downloaded = is_dir($pkg_path) ? array_diff(scandir($pkg_path, 1), ['.', '..','packages.json','packages-desc']) : []; $pkgs_downloaded = is_dir($pkg_extra_path) ? array_diff(scandir($pkg_extra_path, 1), ['.', '..','packages.json','packages-desc']) : [];
// get array of all installed packages // get array of all installed packages
$pkgs_installed = array_diff(scandir("/var/log/packages", 1), ['.', '..']); $pkgs_installed = array_diff(scandir("/var/log/packages", 1), ['.', '..']);

View File

@ -158,12 +158,7 @@ function Apply() {
function checkDepends() { function checkDepends() {
try { try {
if ($('#screen')[0].checked) {
$('#utempter').switchButton({checked: true});
$('#utempter', '.pkgvalue').val('yes');
$('#ncurses-terminfo').switchButton({checked: true});
$('#ncurses-terminfo', '.pkgvalue').val('yes');
}
if ($('#tmux')[0].checked) { if ($('#tmux')[0].checked) {
$('#ncurses-terminfo').switchButton({checked: true}); $('#ncurses-terminfo').switchButton({checked: true});
$('#ncurses-terminfo', '.pkgvalue').val('yes'); $('#ncurses-terminfo', '.pkgvalue').val('yes');
@ -192,10 +187,10 @@ function checkDepends() {
$('#utf8proc').switchButton({checked: true}); $('#utf8proc').switchButton({checked: true});
$('#utf8proc', '.pkgvalue').val('yes'); $('#utf8proc', '.pkgvalue').val('yes');
} }
} catch (error) { } catch (error) {
console.error(error); console.error(error);
// expected output: ReferenceError: nonExistentFunction is not defined // expected output: ReferenceError: nonExistentFunction is not defined
// Note - error messages will vary depending on browser // Note - error messages will vary depending on browser
} }
} }