remove orphans on compose down
This commit is contained in:
@@ -108,14 +108,9 @@ QPKG_NAME="RoonServer"
|
|||||||
|
|
||||||
#PKG_PRE_REMOVE="{
|
#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="{
|
PKG_POST_REMOVE="{
|
||||||
## Remove symlink of web interface, if it still exist
|
## Remove symlink of web interface, if it still exist
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ case "$1" in
|
|||||||
echolog "Stopping RoonServer..."
|
echolog "Stopping RoonServer..."
|
||||||
compose_docker_yml_files
|
compose_docker_yml_files
|
||||||
export_vars
|
export_vars
|
||||||
${DOCKER_CMD} compose ${COMPOSE_FILES} down
|
${DOCKER_CMD} compose ${COMPOSE_FILES} down --remove-orphans
|
||||||
[ -d "${WEB_PATH}${WEBUI}" ] && rm "${WEB_PATH}${WEBUI}"
|
[ -d "${WEB_PATH}${WEBUI}" ] && rm "${WEB_PATH}${WEBUI}"
|
||||||
echolog "RoonServer has been stopped."
|
echolog "RoonServer has been stopped."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user