update install script
This commit is contained in:
parent
a93c2d1be0
commit
7aa0234094
|
@ -77,8 +77,7 @@ sum1=$(/usr/bin/md5sum &plugin;/&name;-&version;.txz)
|
||||||
sum2=$(/usr/bin/cat &plugin;/&name;-&version;.md5)
|
sum2=$(/usr/bin/cat &plugin;/&name;-&version;.md5)
|
||||||
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
||||||
echo "Wrong 'plugin' package md5 hash."
|
echo "Wrong 'plugin' package md5 hash."
|
||||||
rm &plugin;/&name;-&version;.txz
|
rm -f &plugin;/&name;-&version;.*
|
||||||
rm &plugin;/&name;-&version;.md5
|
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
upgradepkg --install-new &plugin;/&name;-&version;.txz
|
upgradepkg --install-new &plugin;/&name;-&version;.txz
|
||||||
|
@ -112,9 +111,8 @@ The 'remove' script.
|
||||||
-->
|
-->
|
||||||
<FILE Run="/bin/bash" Method="remove">
|
<FILE Run="/bin/bash" Method="remove">
|
||||||
<INLINE>
|
<INLINE>
|
||||||
rm -rf &emhttp;
|
removepkg &plugin;/&name;-&version;.txz
|
||||||
rm -f &plugin;/&name;-&version;z*
|
rm -f &plugin;/&name;-&version;.*
|
||||||
rm -f &plugin;/*.txz
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "-----------------------------------------------------------"
|
echo "-----------------------------------------------------------"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user