Edit /opt/SlimCD/slimupdate.sh and replace the third line with the
following:
LATESTURL='http://www.slimdevices.com/downloads/nightly/latest/6.1.2/'

Thanks Michael,
I have done the edit but the script still does not work. From the
messages on the screen I assume that the LATESTFILE is parsed
incorrectly.

Yeah, you're right. Those regexes needed some tweaking, too. I didn't remember I already had done this... Please find the script attached (rename to slimupdate.sh, put it in /opt/SlimCD and make it executable (chmod o+x slimupdate.sh)).

--

Michael

-----------------------------------------------------------
http://www.jo-sac.ch            - JO-SAC inoffiziell!
http://www.herger.net/photo     - mein kleines Photoalbum
#!/bin/sh

LATESTURL='http://www.slimdevices.com/downloads/nightly/latest/6.1.2/'
INSTALLDIR='/opt/slimserver/'

echo Checking for SlimServer update...
LATESTFILE=`wget -qO - ${LATESTURL} | grep no-cpan-arch | sed 
's/\(.*\)\(SlimServer_6_1_x_v[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\.no-cpan-arch\.tar\.gz\)\(.*\)/\2/g'`
echo Latest build is ${LATESTFILE}
echo

echo Getting latest SlimServer...
cd /tmp
wget ${LATESTURL}${LATESTFILE} || (echo Failure downloading SlimServer update! 
&& exit)

echo
echo Installing latest build...
LATESTBUILDFOLDER=`echo ${LATESTFILE} | sed 
's/\(SlimServer_6_1_x_v[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\)\(\.no-cpan-arch\.tar\.gz\)/\1/g'`
tar -xzf ${LATESTFILE}
cp -Rf ${LATESTBUILDFOLDER}/* ${INSTALLDIR}
rm -rf ${LATESTFILE} ${LATESTBUILDFOLDER}

echo
/etc/init.d/slimserver restart
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to