Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
Short update. Below my latest """nightly""" download method: Code: PACKAGE=$(curl -s 'http://downloads.slimdevices.com/nightly/?ver=7.9' | grep "amd64" | awk -F '"' '{print $2}' ) wget http://downloads.slimdevices.com/nightly/${PACKAGE#.} It provides the .deb only. The earlier version downloaded the entire directory-structure +.deb. Inspired by Pauls comment, I added a revision check: Code: ACTPACKAGEREV=$(cat /usr/share/squeezeboxserver/revision.txt | head -1) NEWPACKAGEREV=$(curl -s 'http://downloads.slimdevices.com/nightly/?ver=7.9' | grep "amd64" | awk -F '~' '{print $2}' | awk -F '_' '{print $1}') [[ $ACTPACKAGEREV == $NEWPACKAGEREV ]] && { echo "***No need to run an update***" ; exit 1 ; } ; Enjoy. soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
IMHO there is no need to use the daily nightlys right now. Cause it seems -there are no changes. That's correct: nightlies are built nightly. Wether there were changes or not. Therefore the timestamp can change. But the revision number should stay the same. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
soundcheck wrote: > If you would have read what I was looking for, you would have noticed > the term: > > "nightly builds" Yapp, but since 7.9 is "released" there are some changes (tbh that i didnt understand right now) eg . i downloaded logitechmediaserver_7.9.1~1492077569_i386.deb 59.34 MB *April 24 *2017 04:38 and install that. What i am ending up is: 7.9.1 - 1492077569 @ Thu *Apr 13* 10:29:10 UTC 2017 IMHO there is no need to use the daily nightlys right now. Cause it seems -there are no changes. DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
soundcheck wrote: > I do intend to control the entire process myself. > > The only thing I'd like to know is if there's a way to download the most > current nightly .deb by script. > > > Thx. Here is the manual updater check I use with piCorePlayer. Note that you will need to use the path where LMS is installed. Of course you can hard code your version too. And instead of pulling the nocpan version, you probably want deb. The first section of the code checks to see if there is a newer version, then returns the link to the newer version. If there is a valid link returned, then you can download the file. Please note these are script snipets..you will need to fill in the gaps with your specific information. Code: VERSION=$(fgrep "our \$VERSION" /usr/local/slimserver/slimserver.pl | cut -d"'" -f2) REVISION=$(head -n 1 /usr/local/slimserver/revision.txt) echo "${YELLOW}Performing manual check for update link, Current Version is: $VERSION r${REVISION}.${NORMAL}" tmp=`mktemp` wget "http://www.mysqueezebox.com/update/?version=${VERSION}&revision=${REVISION}&geturl=1&os=nocpan"; -O $tmp if [ "$?" != "0" ]; then echo "${RED}Unable to Contact Download Server!${NORMAL}"; rm $tmp; exit 1; fi read LINK < $tmp rm -f $tmp if [ "$LINK" = "0" ]; then # No Update needed else echo echo "${GREEN}Downloading update from ${LINK}" fi rm -f $DL_DIR/*.tgz wget -P $DL_DIR $LINK if [ "$?" != "0" ]; then echo "${RED}Download FAILED.. exiting!${NORMAL}" [ -n "$DEBUG" ] || rm -f $DL_DIR/'*.tgz' exit 1 fi reference: http://wiki.slimdevices.com/index.php/Nightly_Builds paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
DJanGo wrote: > > the funny thing is - this is a version of a script that had issues - but > the posted one cant run cause there are some lines missing > > btw: There is no need to wget things since a long time. > Just activate the lms updater in the settings and run > > Code: > > #!/bin/bash > > echo -n "checking for lms update" > update=$(ls /var/lib/squeezeboxserver/cache/updates/*.deb 2> /dev/null | wc -l) > if [ "$update" != "0" ] > then > echo " There is a newer Version" > find /var/lib/squeezeboxserver/cache/updates/*.deb -exec dpkg -i {} \; -exec rm {} \; > else > echo " No newer LMS Version found." > fi > > > > > If someone wants to add this code - feel free - but dont add bugs to > it. I'm not entirely sure what it was about my post that appears to have caused offence. The 'email me if it needs installing' refers to the fact that the script sends me an email if it downloads a new version of the server software, telling me it needs to be installed. I wasn't offering any installation service. I honestly can't recall where this script came from, I thought I had done a lot of the work myself, but it could well be based on someone else's script. Definitely interested in the statements that "It won't work because there's lines missing" and "Don't add bugs". Would appreciate any comments as to how to improve it. Thanks Andy adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
If you would have read what I was looking for, you would have noticed the term: "nightly builds" soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
DJanGo wrote: > lol... > > why not contact the 'original' > (http://forums.slimdevices.com/showthread.php?103885-Upcoming-changes-to-download-sites-bye-bye-Debian-and-yum-repos&p=822987&viewfull=1#post822987) > author? > -He- may knew some bugs in this Version of the script that did nt need > any installation... > http://wiki.slimdevices.com/index.php?title=Debian_Package&action=history the funny thing is - this is a version of a script that had issues - but the posted one cant run cause there are some lines missing DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
adhawkins wrote: > email me if it needs installing > > Andy lol... why not contact the 'original' (http://forums.slimdevices.com/showthread.php?103885-Upcoming-changes-to-download-sites-bye-bye-Debian-and-yum-repos&p=822987&viewfull=1#post822987) author? -He- may knew some bugs in this Version of the script that did nt need any installation... http://wiki.slimdevices.com/index.php?title=Debian_Package&action=history DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
Hi, In article , soundcheck wrote: > Does anybody have an idea how to run automated downloads of nightly > builds with wget. > > I'd just like to run a script in the background that does the update job > automatically. I use the following to download, email me if it needs installing, and delete all but the latest 10 files. http://paste.debian.net/928440/ Andy ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
I figured it out myself. How about this? Code: wget -r -l1 --no-parent -A "amd64.deb" http://downloads.slimdevices.com/nightly/?ver=7.9 soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
drmatt wrote: > Think you can turn auto self-update of the nightly build release in the > UI and it does all this for you. I do intend to control the entire process myself. The only thing I'd like to know is if there's a way to download the most current nightly .deb by script. Thx. soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
Think you can turn auto self-update of the nightly build release in the UI and it does all this for you. -- Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0 Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums.. drmatt's Profile: http://forums.slimdevices.com/member.php?userid=59498 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
[SlimDevices: SqueezeCenter] wget - automatic download of nightly builds ?
Hi there. Does anybody have an idea how to run automated downloads of nightly builds with wget. I'd just like to run a script in the background that does the update job automatically. Thinking of: wget http://downloads.slimdevices.com/nightly/7.9/sc/3ef3118/logitechmediaserver_7.9.*_amd64.deb which obviously doesn't work. Thx. soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383 View this thread: http://forums.slimdevices.com/showthread.php?t=107247 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter