fix directory creation

This commit is contained in:
dmacias72 2016-10-09 07:51:55 -06:00
parent 80327aac56
commit 39f0bb370f
2 changed files with 9 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<!DOCTYPE PLUGIN [ <!DOCTYPE PLUGIN [
<!ENTITY name "NerdPack"> <!ENTITY name "NerdPack">
<!ENTITY author "dmacias72"> <!ENTITY author "dmacias72">
<!ENTITY version "2016.10.08"> <!ENTITY version "2016.10.09">
<!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,8 @@
<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.10.09
- fix: not creating package directory
###2016.10.08 ###2016.10.08
- fix: false positive of installed packages - fix: false positive of installed packages
- fix: packagemanager bug if cookies are missing - fix: packagemanager bug if cookies are missing
@ -194,7 +196,7 @@ else
count=`ls -1 /boot/config/plugins/NerdPack/packages/*.txz 2>/dev/null | wc -l` count=`ls -1 /boot/config/plugins/NerdPack/packages/*.txz 2>/dev/null | wc -l`
if [ $count != 0 ]; then if [ $count != 0 ]; then
if [ ! -d &plgpath;/packages/6.1 ]; then if [ ! -d &plgpath;/packages/6.1 ]; then
mkdir &plgpath;/packages/6.1 mkdir -p &plgpath;/packages/6.1
fi fi
echo "Moving package files..." echo "Moving package files..."
mv &plgpath;/packages/*txz &plgpath;/packages/6.1 mv &plgpath;/packages/*txz &plgpath;/packages/6.1
@ -202,7 +204,7 @@ else
if [[ $VER == 6.3 ]]; then if [[ $VER == 6.3 ]]; then
if [ ! -d &plgpath;/packages/$VER ]; then if [ ! -d &plgpath;/packages/$VER ]; then
mkdir &plgpath;/packages/$VER mkdir -p &plgpath;/packages/$VER
if [ -d &plgpath;/packages/6.2 ]; then if [ -d &plgpath;/packages/6.2 ]; then
count2=`ls -1 /boot/config/plugins/NerdPack/packages/6.2/*.txz 2>/dev/null | wc -l` count2=`ls -1 /boot/config/plugins/NerdPack/packages/6.2/*.txz 2>/dev/null | wc -l`
if [ $count2 != 0 ]; then if [ $count2 != 0 ]; then
@ -214,7 +216,7 @@ else
fi fi
if [ ! -d &plgpath;/packages/$VER ]; then if [ ! -d &plgpath;/packages/$VER ]; then
mkdir &plgpath;/packages/$VER mkdir -p &plgpath;/packages/$VER
fi fi
upgradepkg --install-new &plgpath;/&plgname;.txz upgradepkg --install-new &plgpath;/&plgname;.txz

View File

@ -11,8 +11,10 @@ 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-10-08</Date> <Date>2016-10-09</Date>
<Changes> <Changes>
###2016.10.09
- fix: not creating package directory
###2016.10.08 ###2016.10.08
- fix: false positive of installed packages - fix: false positive of installed packages
- fix: packagemanager bug if cookies are missing - fix: packagemanager bug if cookies are missing