update
This commit is contained in:
parent
2e703ce91e
commit
c37a622c1c
|
@ -3,7 +3,7 @@
|
||||||
<!DOCTYPE PLUGIN [
|
<!DOCTYPE PLUGIN [
|
||||||
<!ENTITY name "NerdPack">
|
<!ENTITY name "NerdPack">
|
||||||
<!ENTITY author "dmacias72">
|
<!ENTITY author "dmacias72">
|
||||||
<!ENTITY version "2016.01.10b">
|
<!ENTITY version "2016.01.10c">
|
||||||
<!ENTITY launch "Settings/&name;">
|
<!ENTITY launch "Settings/&name;">
|
||||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
||||||
|
|
||||||
<CHANGES>
|
<CHANGES>
|
||||||
###2016.01.10b
|
###2016.01.10a-c
|
||||||
- fix name of package description file
|
- fix name of package description file
|
||||||
###2016.01.10
|
###2016.01.10
|
||||||
- added dynamic package description tootips
|
- added dynamic package description tootips
|
||||||
|
|
|
@ -13,7 +13,7 @@ This plugin allows installation of extra packages, mostly CLI, for advanced user
|
||||||
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.png</Icon>
|
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.png</Icon>
|
||||||
<Date>2016-01-10</Date>
|
<Date>2016-01-10</Date>
|
||||||
<Changes>
|
<Changes>
|
||||||
###2016.01.10a
|
###2016.01.10a-c
|
||||||
- fix name of package description file
|
- fix name of package description file
|
||||||
###2016.01.10
|
###2016.01.10
|
||||||
- added dynamic package description tootips
|
- added dynamic package description tootips
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
require_once("/usr/local/emhttp/plugins/NerdPack/include/NerdPackHelpers.php");
|
require_once("/usr/local/emhttp/plugins/NerdPack/include/NerdPackHelpers.php");
|
||||||
|
|
||||||
$plg_path ="/boot/config/plugins/NerdPack";// plugin path
|
$plg_path ="/boot/config/plugins/NerdPack";// plugin path
|
||||||
$pkg_path = "$plg_path/packages"; // package path
|
$pkg_path = "$plg_path/packages/"; // package path
|
||||||
$config_file = "$plg_path/NerdPack.cfg";// config file
|
$config_file = "$plg_path/NerdPack.cfg";// config file
|
||||||
|
|
||||||
$pkg_cfg = (is_file($config_file)) ? parse_ini_file($config_file) : array(); // get package configs
|
$pkg_cfg = (is_file($config_file)) ? parse_ini_file($config_file) : array(); // get package configs
|
||||||
|
@ -11,10 +11,10 @@ $pkgs_downloaded = array_diff( scandir($pkg_path, 1), array(".", "..") ); // get
|
||||||
|
|
||||||
$pkgs_installed = array_diff( scandir("/var/log/packages", 1), array(".", "..") ); // get array of all installed packages
|
$pkgs_installed = array_diff( scandir("/var/log/packages", 1), array(".", "..") ); // get array of all installed packages
|
||||||
|
|
||||||
$pkgs_desc_file = file_get_contents("$pkg_path/packages-desc");// get package descriptions
|
$pkgs_desc_file = file_get_contents($pkg_path."packages-desc");// get package descriptions
|
||||||
$pkgs_desc_array = json_decode($pkgs_desc_file, true);
|
$pkgs_desc_array = json_decode($pkgs_desc_file, true);
|
||||||
|
|
||||||
$pkgs_github_file = file_get_contents("$pkg_path/packages.json");// get packages
|
$pkgs_github_file = file_get_contents($pkg_path."packages.json");// get packages
|
||||||
$pkgs_github_array = json_decode($pkgs_github_file, true);
|
$pkgs_github_array = json_decode($pkgs_github_file, true);
|
||||||
|
|
||||||
$pkgs_array = array();
|
$pkgs_array = array();
|
||||||
|
|
|
@ -55,9 +55,9 @@ function logger($output, $quiet) {
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
}
|
}
|
||||||
|
|
||||||
$config_file = "/boot/config/plugins/NerdPack/NerdPack.cfg";
|
$plg_path ="/boot/config/plugins/NerdPack";// plugin path
|
||||||
|
$pkg_path = "$plg_path/packages/"; // package path
|
||||||
$pkg_path ="/boot/config/plugins/NerdPack/packages/";
|
$config_file = "$plg_path/NerdPack.cfg";// config file
|
||||||
|
|
||||||
$pkg_cfg = (is_file($config_file)) ? parse_ini_file($config_file) : array(); // get package configs
|
$pkg_cfg = (is_file($config_file)) ? parse_ini_file($config_file) : array(); // get package configs
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ $pkgs_downloaded = array_diff( scandir($pkg_path, 1), array(".", "..") ); // get
|
||||||
|
|
||||||
$pkgs_installed = array_diff( scandir("/var/log/packages", 1), array(".", "..") );
|
$pkgs_installed = array_diff( scandir("/var/log/packages", 1), array(".", "..") );
|
||||||
|
|
||||||
$pkgs_json = "/boot/config/plugins/NerdPack/packages.json";
|
$pkgs_json = $pkg_path."packages.json";
|
||||||
$pkgs_file = (is_file($pkgs_json)) ? file_get_contents($pkgs_json) : array();
|
$pkgs_file = (is_file($pkgs_json)) ? file_get_contents($pkgs_json) : array();
|
||||||
|
|
||||||
$pkgs_github = json_decode($pkgs_file, true);
|
$pkgs_github = json_decode($pkgs_file, true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user