Fix dindctl when run from another dir

Change-type: patch
This commit is contained in:
Pagan Gazzard 2019-11-11 23:51:47 +00:00
parent b4ad29ec14
commit 57d4a19f1d

View File

@ -136,8 +136,8 @@ function refreshSupervisorSrc {
}
function runDind {
if [ ! -f "tools/dind/resinos-in-container/resinos-in-container.sh" ]; then
git submodule update --init
if [ ! -f "$SUPERVISOR_BASE_DIR/tools/dind/resinos-in-container/resinos-in-container.sh" ]; then
(cd $SUPERVISOR_BASE_DIR; git submodule update --init)
fi
if [ "$MOUNT_DIST" = "true" ]; then
buildSupervisorSrc