Oke thanks for the help, change the websie to website.

But the 

(( UPDATE )) || (( NIGTHLY )) && _GETUPGRADE

if correct, it's not and and, but if one of them is 1.


But the 
blackbite wrote: 
> Hi digimaster,
> 
> I think I found the update problem:
> 
> In the LogitechMediaServer.sh the update is only done, when both
> parameters UPDATE & NIGHTLY were set to "1" in the .QLMS.conf file. I
> had only NIGHTLY set to "1" as you said in a previous post ...to prevent
> from upgrading to a new official release (eg. 8.xxx) and just getting
> nightly updates. But that is in fact not working as described. By
> deleting the .INSTALLED the update routine downloaded and installed the
> nightly. But only when both parameters were set to "1". Can U please
> check this.
> 
> > 
Code:
--------------------
  >   > # Check if enabled, if a upgraded can be done.                  
  > (( UPDATE )) || (( NIGTHLY )) && _GETUPGRADE
  > _UPGRADE
  > 
--------------------
> > 
> 
> By checking the .QLMS.func I found another little typo at the end of
> the routine:
> 
> the log "Website not responding on request" has to be ${WEBSITE} not
> ${WEBSIE}. 
> I changed it already in the code.
> 
> > 
Code:
--------------------
  >   > _GETUPGRADE(){  # Get the latstet officiel and nighlty LMS build
  > [[ -z ${WEBSITE} ]] && local WEBSITE="http://downloads.slimdevices.com/";
  > local SOURCE_DIR=${QPKG_ROOT}/.source/
  > [[ -d ${SOURCE_DIR} ]] || /bin/mkdir -p -m 0700 ${SOURCE_DIR}
  > /usr/bin/wget -q --spider ${WEBSITE}
  > if test $? ;then
  > local INDEXFILE=/tmp/lms-upgrade.html
  > if [ -f ${QPKG_ROOT}/SlimServer/.INSTALLED ] ;then
  > local ARGS1=$(/bin/cat ${QPKG_ROOT}/SlimServer/.INSTALLED)
  > local VERSION=${ARGS1##*-} && local RELEASE=${ARGS1%%-*}
  > else
  > local RELEASE=$(/bin/cat ${QPKG_ROOT}/.config/.RELEASE.conf ) || local 
RELEASE=9.9.9
  > local VERSION=0
  > until [ ${RELEASE} = 7.0.0 ] ;do
  > /usr/bin/wget -q --spider ${WEBSITE}LogitechMediaServer_v${RELEASE} && break
  > local RELEASE=$(_RELMIN ${RELEASE})
  > [[ ${RELEASE} == 7.0.0 ]] && _LOG 1 "No good release found on the website, 
you will have to supply one manuelly !" && return 0
  > done
  > fi
  > if ((NIGHTLY)) ;then # Get Nightly builds if enabled by config
  > /usr/bin/wget -q --spider ${WEBSITE}nightly/ || return 1
  > /usr/bin/wget -q -t 5  --connect-timeout=20 --dns-timeout=20 -O 
${INDEXFILE} "${WEBSITE}nightly/?ver=${RELEASE%.*}" || return 1
  > local ARGS1=$(/bin/grep -A 2 "Logitech Media Server: Unix Tarball (i386, 
x86_64, i386 FreeBSD, ARM EABI, PowerPC)" ${INDEXFILE} | /bin/grep 
logitechmediaserver )
  > [[ ${INDEXFILE} ]] && /bin/rm ${INDEXFILE}
  > local SOURCE_FILE=${ARGS1%'"'*} && SOURCE_FILE=${SOURCE_FILE#*.} && 
SOURCE_FILE=${SOURCE_FILE#*/} && SOURCE_FILE=${WEBSITE}nightly/${SOURCE_FILE}
  > local F_RELEASE=${SOURCE_FILE#*-} && F_RELEASE=${F_RELEASE%%-*}
  > local F_VERSION=${ARGS1##*-} && F_VERSION=${F_VERSION%.*}
  > if [ ${F_RELEASE} == $(_RELPLUS ${RELEASE}) ] && [ ${F_VERSION} -gt 
${VERSION} ] ; then
  > /usr/bin/wget -q -nc --show-progress -t 5  --connect-timeout=20 
--dns-timeout=20 -P ${SOURCE_DIR} "${SOURCE_FILE}"
  > [[ -e ${SOURCE_DIR}${SOURCE_FILE##*/} ]] && return 0 
  > _LOG 1 "There was a error, could not download ${SOURCE_FILE} !"
  > fi
  > fi
  > if (( UPDATE )) || [ ! -d ${QPKG_ROOT}/SlimServer/ ] ; then # Get officiel 
build if enabled by config
  > /usr/bin/wget -q -t 5  --connect-timeout=20 --dns-timeout=20 -O 
${INDEXFILE} ${WEBSITE}LogitechMediaServer_v${RELEASE}
  > if [ $? = 0 ] ;then
  > [[ -n $(/bin/grep "logitechmediaserver-${RELEASE}.tgz" ${INDEXFILE} | 
/bin/grep logitechmediaserver ) ]] && \
  > /usr/bin/wget -q -nc --show-progress -t 5  --connect-timeout=20 
--dns-timeout=20 -P ${SOURCE_DIR} 
"${WEBSITE}LogitechMediaServer_v${RELEASE}/logitechmediaserver-${RELEASE}.tgz"
  > [[ -e ${SOURCE_DIR}logitechmediaserver-${RELEASE}.tgz ]] && return 0
  > _LOG 1 "There was a error, could not download 
logitechmediaserver-${RELEASE}.tgz!"
  > fi
  > fi
  > else
  > _LOG 1 "${WEBSITE} not responding on request !"
  > fi
  > return 1
  > 
--------------------
> > 
> 
> Thanks again for all your work here! Will try to help a little



*
maintainer of QLogitechMediaServer and Qnap-Optware-NG.

Qnap TS-453a, with LogitechMediaSever 7.9.1 ( with spotty and youtube )
Serval raspberry with hifiberry amp+ and picoreplayer.
Love logitechmediaserver for it flexibel way, to play music from
different sources.*
------------------------------------------------------------------------
digimaster's Profile: http://forums.slimdevices.com/member.php?userid=66919
View this thread: http://forums.slimdevices.com/showthread.php?t=108292

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to