From 0dfc8ca04f1666f7fcd99ee8d67e3598b22e23ff Mon Sep 17 00:00:00 2001 From: F0x06 Date: Sat, 11 Feb 2023 21:18:55 +0100 Subject: [PATCH] Make sure to be in the same folder as 'docker-compose.yml' file before pull & up -d --- dockcheck.sh | 1 + 1 file changed, 1 insertion(+) 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