Compare commits
4 Commits
27a4d7d46b
...
a1fc9585d3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1fc9585d3 | ||
|
|
d4134220a9 | ||
|
|
13082cdb92 | ||
|
|
0747f45c5b |
@@ -108,18 +108,22 @@ QPKG_NAME="RoonServer"
|
||||
|
||||
#PKG_PRE_REMOVE="{
|
||||
#}"
|
||||
#
|
||||
#PKG_MAIN_REMOVE="{
|
||||
#}"
|
||||
#
|
||||
|
||||
PKG_MAIN_REMOVE="{
|
||||
|
||||
## Remove Roon Servers docker image
|
||||
CS_DIR=`$CMD_GETCFG "container-station" Install_Path -f SYS_QPKG_CONFIG_FILE`
|
||||
$CS_DIR/bin/system-docker image rm 'ghcr.io/roonlabs/roonserver:latest'
|
||||
|
||||
}"
|
||||
|
||||
PKG_POST_REMOVE="{
|
||||
|
||||
## Remove symlink of web interface, if it still exist
|
||||
|
||||
RoonSymlink="/home/httpd/cgi-bin/qpkg/RoonServer"
|
||||
if [ -L $RoonSymlink ]; then
|
||||
"${CMD_RM}" "${RoonSymlink}"
|
||||
fi
|
||||
|
||||
}"
|
||||
#
|
||||
######################################################################
|
||||
@@ -141,24 +145,25 @@ pkg_init(){
|
||||
# Define any package specific operations that shall be performed when
|
||||
# the package is installed.
|
||||
######################################################################
|
||||
|
||||
pkg_pre_install(){
|
||||
}
|
||||
#
|
||||
#pkg_pre_install(){
|
||||
#}
|
||||
|
||||
pkg_install(){
|
||||
## Creating required folders and setting permissions
|
||||
"${CMD_MKDIR}" -m 777 "${SYS_QPKG_DIR}"/id
|
||||
|
||||
CS_DIR=`$CMD_GETCFG "container-station" Install_Path -f SYS_QPKG_CONFIG_FILE`
|
||||
|
||||
# Pull Roon Server docker image, so the first qpkg launch will take less time.
|
||||
$CS_DIR/bin/system-docker pull 'ghcr.io/roonlabs/roonserver:latest'
|
||||
|
||||
}
|
||||
|
||||
pkg_post_install(){
|
||||
# Checking if required directories exist
|
||||
[ -d "${SYS_QPKG_DIR}/tmp" ] || "${CMD_MKDIR}" -m 777 "${SYS_QPKG_DIR}/tmp"
|
||||
[ -d "${SYS_QPKG_DIR}/id" ] || "${CMD_MKDIR}" -m 777 "${SYS_QPKG_DIR}/id"
|
||||
|
||||
|
||||
|
||||
"${CMD_SETCFG}" "${QPKG_NAME}" options "" -f "${SYS_QPKG_CONFIG_FILE}"
|
||||
|
||||
|
||||
"${CMD_SETCFG}" "${QPKG_NAME}" Force_Visible 1 -f "${SYS_QPKG_CONFIG_FILE}"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ QPKG_NAME="RoonServer"
|
||||
# Name of the display application.
|
||||
QPKG_DISPLAY_NAME="Roon Server"
|
||||
# Version of the packaged application.
|
||||
QPKG_VER="2026-04-13"
|
||||
QPKG_VER="2026-04-14"
|
||||
# Author or maintainer of the package
|
||||
QPKG_AUTHOR="Christopher Rieke"
|
||||
# License for the packaged application
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -100,7 +100,7 @@ include_once("/home/httpd/cgi-bin/qpkg/RoonServer/__functions.php");
|
||||
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="hdmi_audio" onchange="changeSettings(this)">
|
||||
<label class="form-check-label justify-content-start text-left" for="flexSwitchCheckChecked">HDMI audio (DAC)</label>
|
||||
<label class="form-check-label justify-content-start text-left" for="flexSwitchCheckChecked">HDMI audio</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user