From dd42100a3d0935d3a9ede99c179a99a63eb32c0a Mon Sep 17 00:00:00 2001 From: mag37 Date: Sat, 4 Feb 2023 12:35:08 +0100 Subject: [PATCH] added new update from main Added the fix to only update the service chosen, not the whole stack. thanx to @maanoobh --- dockcheck.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dockcheck.sh b/dockcheck.sh index 7f6b1bc..6033c95 100644 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -139,9 +139,10 @@ if [ -n "$GotUpdates" ] ; then if [ "$UpdYes" != "${UpdYes#[Yy]}" ] ; then for i in "${SelectedUpdates[@]}" do - ContPath=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.config_files"}}') - $DockerBin -f "$ContPath" pull - $DockerBin -f "$ContPath" up -d + ContPath=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.config_files" }}') + ContName=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.service" }}') + $DockerBin -f "$ContPath" pull "$ContName" + $DockerBin -f "$ContPath" up -d "$ContName" done else printf "\nNo updates installed, exiting.\n"