Maybe someone find it useful. I've made a simple script for automatic update LMS from nightly noCPAN tarball. It assume that you have somewhere a build of additional perl modules for LMS. I added a link to this script to the cron (my cronbab file) and set update every 3 days.
comments: /etc/rc.d/init.d/slimserver -is a location of my bootscript /usr/share/lms/ - location of LMS /root/perl5/perlbrew/perls/perl-5.22.1/bin/perl - location of my custom perl wih permission for lms user (lms:music) /usr/share/lms_perl_build - location of additional Perl modules build for LMS for user (lms:music). Should include .../arch and ...lib/perl5/... directory - as explained in '#37' (http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS&p=843533&viewfull=1#post843533) user=lms group=music Code: -------------------- #!/bin/bash #stop LMS /etc/rc.d/init.d/slimserver stop #remove all files from /usr/share/lms rm -Rf /usr/share/lms/* # download latest nightly 'noCPAN' tarball to /usr/share/ cd /usr/share wget -O lms_7.9_noCPAN_nightly.tgz $(wget -q -O - "http://www.mysqueezebox.com/update/?version=7.9.0&revision=1&geturl=1&os=nocpan") # extract tarbal to /usr/share/lms tar xf lms_7.9_noCPAN_nightly.tgz -C /usr/share/lms --strip-components 1 # change references to custom perl location in files: scanner.pl, slimserver.pl, cleanup.pl, gdresize.pl, gdresized.pl cd /usr/share/lms sed -ie '1s:#!/usr/bin/perl:#!/root/perl5/perlbrew/perls/perl-5.22.1/bin/perl:' *.pl # remove unnecessary directory /usr/share/lms/CPAN/arch rm -rf /usr/share/lms/CPAN/arch # simlink to addtional Perl modules built for LMS ln -s /usr/share/lms_perl_build/arch /usr/share/lms/CPAN/ # change permission of /usr/share/lms chown -R lms:music /usr/share/lms/ chmod 0755 -R /usr/share/lms # remove noCPAN_nightly tarball rm -f /usr/share/lms_7.9_noCPAN_nightly.tgz # run LMS again /etc/rc.d/init.d/slimserver start -------------------- Thanks again to Roland0 for great idea:) ------------------------------------------------------------------------ bernid's Profile: http://forums.slimdevices.com/member.php?userid=37408 View this thread: http://forums.slimdevices.com/showthread.php?t=99648 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix