Merge pull request #9 from maanoobh/specify-service
Specify which service when pulling the update (to avoid pulling non-chosen containers of the same stack)
This commit is contained in:
commit
64c1f097b1
5
dockcheck.sh
Normal file → Executable file
5
dockcheck.sh
Normal file → Executable file
@ -136,8 +136,9 @@ if [ -n "$GotUpdates" ] ; 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
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user