Add geature to change Roon_Channel by creating a textfile in RoonOnNAS dir.

This commit is contained in:
crieke
2026-04-14 05:06:09 +02:00
parent 27a4d7d46b
commit 0747f45c5b
2 changed files with 5 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ DOCKER_CMD=$QCS_QPKG_DIR/bin/system-docker
CONTAINER_NAME=roonserver CONTAINER_NAME=roonserver
COMPOSE_YML_DIR=$QPKG_ROOT/docker/compose COMPOSE_YML_DIR=$QPKG_ROOT/docker/compose
ROONSERVER_OPTIONS=(`/sbin/getcfg $QPKG_NAME options -f ${CONF}`) ROONSERVER_OPTIONS=(`/sbin/getcfg $QPKG_NAME options -f ${CONF}`)
ROON_CHANNEL="production"
WEB_PATH="/home/httpd" WEB_PATH="/home/httpd"
WEBUI=$(/sbin/getcfg $QPKG_NAME webUI -f ${CONF}); WEBUI=$(/sbin/getcfg $QPKG_NAME webUI -f ${CONF});
@@ -91,6 +92,7 @@ info ()
echolog "QTS Version" "${QNAP_QTS_VER} - Build: ${QNAP_QTS_BUILD}" echolog "QTS Version" "${QNAP_QTS_VER} - Build: ${QNAP_QTS_BUILD}"
echolog "PKG Version" "${QPKG_VERSION}" echolog "PKG Version" "${QPKG_VERSION}"
echolog "Hostname" "${HOSTNAME}" echolog "Hostname" "${HOSTNAME}"
echolog "Roon-Channel" "${ROON_CHANNEL}"
} }
RoonOnNAS_folderCheck () RoonOnNAS_folderCheck ()
@@ -123,10 +125,12 @@ export_vars ()
export QNAP_SERIAL export QNAP_SERIAL
export QNAP_QTS_VER export QNAP_QTS_VER
export CONTAINER_NAME export CONTAINER_NAME
export ROON_CHANNEL
} }
start_daemon () start_daemon ()
{ {
[ -f ${ROON_DATAROOT}/earlyaccess.txt ] && ROON_CHANNEL="earlyaccess"
info info
#Launch the service in the background if RoonServer share exists. #Launch the service in the background if RoonServer share exists.
ln -sfn "${QPKG_ROOT}/web" "${WEB_PATH}${WEBUI}" ln -sfn "${QPKG_ROOT}/web" "${WEB_PATH}${WEBUI}"

View File

@@ -4,6 +4,7 @@ services:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
network_mode: host network_mode: host
environment: environment:
- ROON_CHANNEL=${ROON_CHANNEL:-production}
- TZ=${TZ:-UTC} - TZ=${TZ:-UTC}
stop_grace_period: 45s stop_grace_period: 45s
restart: unless-stopped restart: unless-stopped