update plugin
This commit is contained in:
parent
4c9809840f
commit
385adc6237
@ -3,7 +3,7 @@
|
|||||||
<!DOCTYPE PLUGIN [
|
<!DOCTYPE PLUGIN [
|
||||||
<!ENTITY name "NerdPack">
|
<!ENTITY name "NerdPack">
|
||||||
<!ENTITY author "dmacias72">
|
<!ENTITY author "dmacias72">
|
||||||
<!ENTITY version "2016.02.23">
|
<!ENTITY version "2016.03.15">
|
||||||
<!ENTITY launch "Settings/&name;">
|
<!ENTITY launch "Settings/&name;">
|
||||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||||
@ -16,6 +16,12 @@
|
|||||||
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
||||||
|
|
||||||
<CHANGES>
|
<CHANGES>
|
||||||
|
###2016.03.15
|
||||||
|
- enable apply button if update ready
|
||||||
|
- fix: remove old package settings from config after package update
|
||||||
|
- create separate package repos for 6.1 and 6.2
|
||||||
|
- update plugin for unRAID 6.2 compatibility
|
||||||
|
- update packages for 6.2
|
||||||
###2016.02.23
|
###2016.02.23
|
||||||
- fix: search for a partial match of packages used in other plugins
|
- fix: search for a partial match of packages used in other plugins
|
||||||
###2016.02.17
|
###2016.02.17
|
||||||
@ -138,10 +144,11 @@ The 'tablesorter' package file.
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
The Github repo packages file.
|
The Github repo packages file.
|
||||||
-->
|
|
||||||
<FILE Name="&plgpath;/packages/packages.json">
|
<FILE Name="&plgpath;/packages/packages.json">
|
||||||
<URL>&gitURL;/plugins/packages.json</URL>
|
<URL>&gitURL;/plugins/packages.json</URL>
|
||||||
</FILE>
|
</FILE>
|
||||||
|
-->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The package description file.
|
The package description file.
|
||||||
@ -171,7 +178,8 @@ The 'install' script.
|
|||||||
<INLINE>
|
<INLINE>
|
||||||
#Verify unRAID Version
|
#Verify unRAID Version
|
||||||
source /etc/unraid-version
|
source /etc/unraid-version
|
||||||
if [[ ${version:0:3} == 6.0 ]]; then
|
VER=${version:0:3}
|
||||||
|
if [[ $VER == 6.0 ]]; then
|
||||||
echo "unRAID version 6.1 or higher is required"
|
echo "unRAID version 6.1 or higher is required"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -185,18 +193,26 @@ if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
|||||||
&plgpath;/&plgname;.md5
|
&plgpath;/&plgname;.md5
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
if [ ! -d &plgpath;/packages/$VER ]; then
|
||||||
|
mkdir &plgpath;/packages/$VER
|
||||||
|
fi
|
||||||
|
|
||||||
|
count=`ls -1 /boot/config/plugins/NerdPack/packages/*.txz 2>/dev/null | wc -l`
|
||||||
|
if [ $count != 0 ]; then
|
||||||
|
if [ ! -d &plgpath;/packages/6.1 ]; then
|
||||||
|
mkdir &plgpath;/packages/6.1
|
||||||
|
fi
|
||||||
|
echo "Moving package files..."
|
||||||
|
mv &plgpath;/packages/*txz &plgpath;/packages/6.1
|
||||||
|
fi
|
||||||
|
|
||||||
upgradepkg --install-new &plgpath;/&plgname;.txz
|
upgradepkg --install-new &plgpath;/&plgname;.txz
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d &plgpath;/packages ]; then
|
/usr/sbin/packagemanager
|
||||||
mkdir &plgpath;/packages
|
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/sbin/packagemanager
|
# Cleaning old source files
|
||||||
|
find &plgpath;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||||
# Cleaning old source files
|
find &plgpath;/ -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete
|
||||||
find &plgpath;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
|
||||||
find &plgpath;/ -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "-----------------------------------------------------------"
|
echo "-----------------------------------------------------------"
|
||||||
@ -206,6 +222,7 @@ echo " Copyright 2016, &author;, eschultz"
|
|||||||
echo " Version: &version;"
|
echo " Version: &version;"
|
||||||
echo "-----------------------------------------------------------"
|
echo "-----------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
fi
|
||||||
</INLINE>
|
</INLINE>
|
||||||
</FILE>
|
</FILE>
|
||||||
|
|
||||||
|
@ -11,8 +11,14 @@ This plugin allows installation of extra packages, mostly CLI, for advanced user
|
|||||||
</Description>
|
</Description>
|
||||||
<Support>http://lime-technology.com/forum/index.php?topic=37541.0</Support>
|
<Support>http://lime-technology.com/forum/index.php?topic=37541.0</Support>
|
||||||
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.png</Icon>
|
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.png</Icon>
|
||||||
<Date>2016-02-23</Date>
|
<Date>2016-03-15</Date>
|
||||||
<Changes>
|
<Changes>
|
||||||
|
###2016.03.15
|
||||||
|
- enable apply button if update ready
|
||||||
|
- fix: remove old package settings from config after package update
|
||||||
|
- create separate package repos for 6.1 and 6.2
|
||||||
|
- update plugin for unRAID 6.2 compatibility
|
||||||
|
- update packages for 6.2
|
||||||
###2016.02.23
|
###2016.02.23
|
||||||
- fix: search for a partial match of packages used in other plugins
|
- fix: search for a partial match of packages used in other plugins
|
||||||
###2016.02.17
|
###2016.02.17
|
||||||
|
Loading…
Reference in New Issue
Block a user