add separate package repos for different unraid versiona
This commit is contained in:
parent
f179b7b5d0
commit
dd2689e0f3
|
@ -1,9 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
$plg_path = '/boot/config/plugins/NerdPack/'; // plugin path
|
$plg_path = '/boot/config/plugins/NerdPack/'; // plugin path
|
||||||
$pkg_path = $plg_path.'packages/'; // package path
|
$os_version = substr(parse_ini_file('/etc/unraid-version')['version'],0,3);
|
||||||
|
$pkg_path = $plg_path."packages/$os_version/"; // package path
|
||||||
|
if (!is_dir($pkg_path))
|
||||||
|
mkdir($pkg_path);
|
||||||
|
|
||||||
$pkg_desc = 'https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/packages-desc';
|
$pkg_desc = 'https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/packages-desc';
|
||||||
$pkg_repo = 'https://api.github.com/repos/dmacias72/unRAID-plugins/contents/packages';
|
$pkg_repo = "https://api.github.com/repos/dmacias72/unRAID-plugins/contents/packages/$os_version";
|
||||||
|
|
||||||
$desc_file = $pkg_path.'packages-desc';
|
$desc_file = $pkg_path.'packages-desc';
|
||||||
$repo_file = $pkg_path.'packages.json';
|
$repo_file = $pkg_path.'packages.json';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user