diff --git a/dockcheck.sh b/dockcheck.sh index 735a6f7..1df7826 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -165,6 +165,7 @@ if [ -n "$GotUpdates" ] ; then else ComposeFile="$ContPath/$ContConfigFile" fi + cd "$(dirname "${ComposeFile}")" $DockerBin -f "$ComposeFile" pull "$ContName" $DockerBin -f "$ComposeFile" up -d "$ContName" done