add version check
This commit is contained in:
parent
ca11499420
commit
eff47ff3cf
|
@ -97,6 +97,13 @@ The 'install' script.
|
||||||
-->
|
-->
|
||||||
<FILE Run="/bin/bash" Method="install">
|
<FILE Run="/bin/bash" Method="install">
|
||||||
<INLINE>
|
<INLINE>
|
||||||
|
#Verify unRAID Version
|
||||||
|
source /etc/unraid-version
|
||||||
|
if [[ ${version:0:3} == 6.0 ]]; then
|
||||||
|
echo "unRAID version 6.1 or higher is required"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Verify and install plugin package
|
# Verify and install plugin package
|
||||||
sum1=$(/usr/bin/md5sum &plgpath;/&plgname;.txz)
|
sum1=$(/usr/bin/md5sum &plgpath;/&plgname;.txz)
|
||||||
sum2=$(/usr/bin/cat &plgpath;/&plgname;.md5)
|
sum2=$(/usr/bin/cat &plgpath;/&plgname;.md5)
|
||||||
|
@ -148,3 +155,4 @@ echo ""
|
||||||
</FILE>
|
</FILE>
|
||||||
|
|
||||||
</PLUGIN>
|
</PLUGIN>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user