The following page has the following code which is incorrect
http://wiki.slimdevices.com/index.php/Debian_Package
I updated it to
Please note the home folder will need changing.... from /home/user
http://wiki.slimdevices.com/index.php/Debian_Package
Code:
d_update() {
latest_lms=$(wget -q -O - "http://www.mysqueezebox.com/update/?version=7.9.0&revision=1&geturl=1&
lms_deb=$(echo $latest_lms|cut -d "/" -f8)
lms_new_Version=$(echo $lms_deb |cut -d "_" -f2)
installed_lms=$(dpkg-query -W -f '${status} ${package} ${version}\n'|grep logitech |cut -d " " -f
ls /sources/logi* -1t | tail -3| xargs -d '\n' rm -f
if [ ! $lms_new_Version = $installed_lms ]
then
echo 'Update Logitechmediaserver $installed_lms to $lms_newVersion'
mkdir -p /sources
cd /sources
wget $latest_lms
dpkg -i /sources/$lms_deb
else
echo "latest Version $lms_new_Version already installed"
fi
}Code:
d_update() {
latest_lms=$(wget -q -O - "http://www.mysqueezebox.com/update/?version=7.9.0&revision=1&geturl=1&os=deb")
lms_deb=$(echo $latest_lms|cut -d "/" -f8)
lms_new_Version=$(echo $lms_deb |cut -d "_" -f2)
installed_lms=$(dpkg-query -W -f '${status} ${package} ${version}\n'|grep logitech |cut -d " " -f5)
ls /home/rob/lms_sources/logi* -1t | tail -3| xargs -d '\n' rm -f
if [ ! $lms_new_Version = $installed_lms ]
then
echo 'Update Logitechmediaserver $installed_lms to $lms_newVersion'
mkdir -p /home/user/lms_sources
cd /home/rob/lms_sources
wget $latest_lms
dpkg -i /home/user/lms_sources/$lms_deb
else
echo "latest Version $lms_new_Version already installed"
fi
}