Add geature to change Roon_Channel by creating a textfile in RoonOnNAS dir.
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user