remove orphans on compose down

This commit is contained in:
crieke
2026-04-15 03:49:49 +02:00
parent ba8a809d13
commit 17988aeebf
2 changed files with 4 additions and 9 deletions

View File

@@ -108,14 +108,9 @@ QPKG_NAME="RoonServer"
#PKG_PRE_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_MAIN_REMOVE="{
#}"
PKG_POST_REMOVE="{
## Remove symlink of web interface, if it still exist

View File

@@ -205,7 +205,7 @@ case "$1" in
echolog "Stopping RoonServer..."
compose_docker_yml_files
export_vars
${DOCKER_CMD} compose ${COMPOSE_FILES} down
${DOCKER_CMD} compose ${COMPOSE_FILES} down --remove-orphans
[ -d "${WEB_PATH}${WEBUI}" ] && rm "${WEB_PATH}${WEBUI}"
echolog "RoonServer has been stopped."
fi