added new update from main

Added the fix to only update the service chosen, not the whole stack. thanx to @maanoobh
This commit is contained in:
mag37
2023-02-04 12:35:08 +01:00
committed by GitHub
parent bde81aad22
commit dd42100a3d

View File

@ -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"