specify which service to pull and update

This commit is contained in:
Mahmood Alansari 2023-02-04 07:57:15 +00:00
parent 72a4ab889c
commit fb44099b0f

4
dockcheck.sh Normal file → Executable file
View File

@ -136,8 +136,8 @@ 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
$DockerBin -f "$ContPath" pull "$i"
$DockerBin -f "$ContPath" up -d "$i"
done
else
printf "\nNo updates installed, exiting.\n"