Merge pull request #53 from Nixon506E/patch-1
Allow Multiple Digit Version Revisions
This commit is contained in:
commit
22f84f718c
|
@ -213,7 +213,7 @@ The 'install' script.
|
|||
<INLINE>
|
||||
#Verify Unraid Version
|
||||
source /etc/unraid-version
|
||||
VER=${version:0:3}
|
||||
VER=$(expr "$version" : "\([0-9]*\.[0-9]*\)")
|
||||
if [[ $VER == 6.0 ]]; then
|
||||
echo "Unraid version 6.1 or higher is required"
|
||||
exit 1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
$plg_path = '/boot/config/plugins/NerdPack/'; // plugin path
|
||||
$os_version = substr(parse_ini_file('/etc/unraid-version')['version'],0,3);
|
||||
$os_version = strtok(parse_ini_file('/etc/unraid-version')['version'], '.') . '.' . strtok('.');
|
||||
$pkg_path = $plg_path."packages/$os_version/"; // package path
|
||||
if (!is_dir($pkg_path))
|
||||
mkdir($pkg_path);
|
||||
|
|
Loading…
Reference in New Issue
Block a user