Merge pull request #53 from Nixon506E/patch-1

Allow Multiple Digit Version Revisions
This commit is contained in:
Derek Macias 2021-08-11 17:10:27 -06:00 committed by GitHub
commit 22f84f718c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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
@ -302,4 +302,4 @@ echo ""
</INLINE>
</FILE>
</PLUGIN>
</PLUGIN>

View File

@ -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);