diff --git a/QPKG/shared/RoonServer.sh b/QPKG/shared/RoonServer.sh index 02fbdfa..8e243d7 100755 --- a/QPKG/shared/RoonServer.sh +++ b/QPKG/shared/RoonServer.sh @@ -9,6 +9,7 @@ DOCKER_CMD=$QCS_QPKG_DIR/bin/system-docker CONTAINER_NAME=roonserver COMPOSE_YML_DIR=$QPKG_ROOT/docker/compose ROONSERVER_OPTIONS=(`/sbin/getcfg $QPKG_NAME options -f ${CONF}`) +ROON_CHANNEL="production" WEB_PATH="/home/httpd" WEBUI=$(/sbin/getcfg $QPKG_NAME webUI -f ${CONF}); @@ -91,6 +92,7 @@ info () echolog "QTS Version" "${QNAP_QTS_VER} - Build: ${QNAP_QTS_BUILD}" echolog "PKG Version" "${QPKG_VERSION}" echolog "Hostname" "${HOSTNAME}" + echolog "Roon-Channel" "${ROON_CHANNEL}" } RoonOnNAS_folderCheck () @@ -123,10 +125,12 @@ export_vars () export QNAP_SERIAL export QNAP_QTS_VER export CONTAINER_NAME + export ROON_CHANNEL } start_daemon () { + [ -f ${ROON_DATAROOT}/earlyaccess.txt ] && ROON_CHANNEL="earlyaccess" info #Launch the service in the background if RoonServer share exists. ln -sfn "${QPKG_ROOT}/web" "${WEB_PATH}${WEBUI}" diff --git a/QPKG/shared/docker/compose/roonserver.yml b/QPKG/shared/docker/compose/roonserver.yml index d6cf8f8..095cd12 100755 --- a/QPKG/shared/docker/compose/roonserver.yml +++ b/QPKG/shared/docker/compose/roonserver.yml @@ -4,6 +4,7 @@ services: container_name: ${CONTAINER_NAME} network_mode: host environment: + - ROON_CHANNEL=${ROON_CHANNEL:-production} - TZ=${TZ:-UTC} stop_grace_period: 45s restart: unless-stopped