add version check

This commit is contained in:
Derek Macias 2015-12-20 01:56:43 -07:00
parent 1f805e7b9d
commit ca11499420

View File

@ -73,6 +73,14 @@ 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
#remove old plugin name directory
if [ ! -d /usr/local/emhttp/plugins/ipmitool ]; then if [ ! -d /usr/local/emhttp/plugins/ipmitool ]; then
rm -rf /usr/local/emhttp/plugins/ipmitool rm -rf /usr/local/emhttp/plugins/ipmitool
fi fi