From eff47ff3cfcb45fba683ac85399ff95fbae12661 Mon Sep 17 00:00:00 2001 From: Derek Macias Date: Sun, 20 Dec 2015 01:58:07 -0700 Subject: [PATCH] add version check --- plugins/NerdPack.plg | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/NerdPack.plg b/plugins/NerdPack.plg index dc01e0c0..91ac69ba 100644 --- a/plugins/NerdPack.plg +++ b/plugins/NerdPack.plg @@ -97,6 +97,13 @@ The 'install' script. --> +#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 sum1=$(/usr/bin/md5sum &plgpath;/&plgname;.txz) sum2=$(/usr/bin/cat &plgpath;/&plgname;.md5) @@ -148,3 +155,4 @@ echo "" +