fix directory creation
This commit is contained in:
parent
80327aac56
commit
39f0bb370f
@ -3,7 +3,7 @@
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "NerdPack">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2016.10.08">
|
||||
<!ENTITY version "2016.10.09">
|
||||
<!ENTITY launch "Settings/&name;">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
@ -16,6 +16,8 @@
|
||||
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
||||
|
||||
<CHANGES>
|
||||
###2016.10.09
|
||||
- fix: not creating package directory
|
||||
###2016.10.08
|
||||
- fix: false positive of installed packages
|
||||
- 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`
|
||||
if [ $count != 0 ]; then
|
||||
if [ ! -d &plgpath;/packages/6.1 ]; then
|
||||
mkdir &plgpath;/packages/6.1
|
||||
mkdir -p &plgpath;/packages/6.1
|
||||
fi
|
||||
echo "Moving package files..."
|
||||
mv &plgpath;/packages/*txz &plgpath;/packages/6.1
|
||||
@ -202,7 +204,7 @@ else
|
||||
|
||||
if [[ $VER == 6.3 ]]; then
|
||||
if [ ! -d &plgpath;/packages/$VER ]; then
|
||||
mkdir &plgpath;/packages/$VER
|
||||
mkdir -p &plgpath;/packages/$VER
|
||||
if [ -d &plgpath;/packages/6.2 ]; then
|
||||
count2=`ls -1 /boot/config/plugins/NerdPack/packages/6.2/*.txz 2>/dev/null | wc -l`
|
||||
if [ $count2 != 0 ]; then
|
||||
@ -214,7 +216,7 @@ else
|
||||
fi
|
||||
|
||||
if [ ! -d &plgpath;/packages/$VER ]; then
|
||||
mkdir &plgpath;/packages/$VER
|
||||
mkdir -p &plgpath;/packages/$VER
|
||||
fi
|
||||
|
||||
upgradepkg --install-new &plgpath;/&plgname;.txz
|
||||
|
@ -11,8 +11,10 @@ This plugin allows installation of extra packages, mostly CLI, for advanced user
|
||||
</Description>
|
||||
<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>
|
||||
<Date>2016-10-08</Date>
|
||||
<Date>2016-10-09</Date>
|
||||
<Changes>
|
||||
###2016.10.09
|
||||
- fix: not creating package directory
|
||||
###2016.10.08
|
||||
- fix: false positive of installed packages
|
||||
- fix: packagemanager bug if cookies are missing
|
||||
|
Loading…
Reference in New Issue
Block a user