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
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}"