mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-21 11:50:43 +00:00
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:
+4
-3
@@ -139,9 +139,10 @@ if [ -n "$GotUpdates" ] ; then
|
|||||||
if [ "$UpdYes" != "${UpdYes#[Yy]}" ] ; then
|
if [ "$UpdYes" != "${UpdYes#[Yy]}" ] ; then
|
||||||
for i in "${SelectedUpdates[@]}"
|
for i in "${SelectedUpdates[@]}"
|
||||||
do
|
do
|
||||||
ContPath=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.config_files"}}')
|
ContPath=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.config_files" }}')
|
||||||
$DockerBin -f "$ContPath" pull
|
ContName=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.service" }}')
|
||||||
$DockerBin -f "$ContPath" up -d
|
$DockerBin -f "$ContPath" pull "$ContName"
|
||||||
|
$DockerBin -f "$ContPath" up -d "$ContName"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
printf "\nNo updates installed, exiting.\n"
|
printf "\nNo updates installed, exiting.\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user