update
This commit is contained in:
parent
fa4c54e2d5
commit
36879e6517
@ -147,12 +147,24 @@ if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
|||||||
else
|
else
|
||||||
#remove old plugin and move old files
|
#remove old plugin and move old files
|
||||||
OLDPLG="/boot/config/plugins/shellinabox-plugin"
|
OLDPLG="/boot/config/plugins/shellinabox-plugin"
|
||||||
[ -d /usr/local/emhttp/plugins/shellinabox ] && rm -rf /usr/local/emhttp/plugins/shellinabox
|
if [ -d /usr/local/emhttp/plugins/shellinabox ]; then
|
||||||
[ -d /usr/local/emhttp/plugins/shellinabox-plugin ] && rm -rf /usr/local/emhttp/plugins/shellinabox-plugin
|
rm -rf /usr/local/emhttp/plugins/shellinabox
|
||||||
[ -f $OLDPLG/shellinabox-plugin.cfg ] && mv -f $OLDPLG/shellinabox-plugin.cfg &plgPATH;/cmdline.cfg
|
fi
|
||||||
[ -f $OLDPLG/home_directory.tar.gz ] && mv -f $OLDPLG/home_directory.tar.gz &plgPATH;/home_directory.tar.gz
|
if [ -d /usr/local/emhttp/plugins/shellinabox-plugin ]; then
|
||||||
[ -d "$OLDPLG" ] && rm -rf $OLDPLG
|
rm -rf /usr/local/emhttp/plugins/shellinabox-plugin
|
||||||
[ -f $OLDPLG.plg ] && rm -rf $OLDPLG.plg
|
fi
|
||||||
|
if [ -f $OLDPLG/shellinabox-plugin.cfg ]; then
|
||||||
|
mv -f $OLDPLG/shellinabox-plugin.cfg &plgPATH;/cmdline.cfg
|
||||||
|
fi
|
||||||
|
if [ -f $OLDPLG/home_directory.tar.gz ]; then
|
||||||
|
mv -f $OLDPLG/home_directory.tar.gz &plgPATH;/home_directory.tar.gz
|
||||||
|
fi
|
||||||
|
if [ -d "$OLDPLG" ]; then
|
||||||
|
rm -rf $OLDPLG
|
||||||
|
fi
|
||||||
|
if [ -f $OLDPLG.plg ]; then
|
||||||
|
rm -rf $OLDPLG.plg
|
||||||
|
fi
|
||||||
|
|
||||||
# upgrade package
|
# upgrade package
|
||||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user