DJanGo wrote:
> Hi Michael,
>
> right now your update behavior for linux works like a charm.
>
> I would like to have a small improvement.
>
> Right now my (and all other installations) on Debian always gets the
> "_all.deb" Version.
>
> There is nothing wrong with the "_all.deb" but its a big overload for
> the distributionserver and the endusers.
> lms already knows which Version is running.
>
> I run lms on 32 bit and just need the 55.62 mb Version but lms uses the
> all.deb which is 131.32 MB right now.
>
> If that could be solved the downloads where cut down more than the half
> (hopefully) without ending in a big mess to handle that - cause lms
> already knows "what Version" to fetch....
>
> Just an idea
Fairly easy to do with a script, just run from cron.
Code:
--------------------
#!/bin/sh
#Set Architecture Uncomment 1 !
ARCH=arm
#ARCH=amd64
#ARCH=i386
Installed_Release=$(dpkg -s logitechmediaserver | grep Version | awk -F "~"
{'print $2'})
latest_lms=$(wget -q -O -
"http://www.mysqueezebox.com/update/?version=7.9.0&revision=1&geturl=1&os=deb"
| sed s/all/$ARCH/)
Latest_Release=$(echo $latest_lms | awk -F "logitechmediaserver" {'print $2'}
| awk -F "~" {'print $2'} | awk -F "_" {'print $1'})
######################################################################
if [ $Latest_Release -gt $Installed_Release ];then
echo "Newer Release Available Installing"
wget $latest_lms
lms_deb=$(echo $latest_lms|cut -d "/" -f8)
dpkg -iE $lms_deb
rm -f $lms_deb
sleep 60
(echo "wipecache"; sleep 1; echo "exit") | nc localhost 9090
echo "Previous Release was "$Installed_Release
echo "Installed Release is "$Latest_Release
else
echo "Newer Release NOT Available, Terminating"
fi
--------------------
I have a version for YUM as well if anyone wants it
Jeff
*Players:* SliMP3,Squeezebox3 x3,Receiver,SqueezePlayer,PiCorePlayer
x3,Wandboard
*Server:* LMS Version: 7.9.0 - 1453293926 on Centos 7 VM on ESXi 6 on HP
N54L
*Plugins:* AutoRescan/BBCiPlayer/PowerSave/PowerSwitchIII/Squeezecloud
*Remotes:* iPeng8/Orangesqueeze/PC/Jivelite
*Music:* 383GB,1269 albums 17756 songs 4381 artists mostly FLACs
*Want a webapp ?* See
http://forums.slimdevices.com/showthread.php?104305-Webapp-for-LMS
------------------------------------------------------------------------
Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290
View this thread: http://forums.slimdevices.com/showthread.php?t=105351
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta