Skip to content

Commit c4fa7b0

Browse files
committed
Improve tkldev-docker missing error
1 parent 2d8a0c2 commit c4fa7b0

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

bt-iso

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,16 @@ export BT
169169
export BT_CONFIG="$BT/config"
170170
. "$BT_CONFIG/common.cfg"
171171

172-
INIT_CONF=/turnkey/public/tkldev-docker/inithooks.conf
173-
if [[ ! -f "$INIT_CONF" ]]; then
172+
TKLDEV_DOCKER=${TKLDEV_DOCKER:-/turnkey/public/tkldev-docker}
173+
INIT_CONF="$TKLDEV_DOCKER/inithooks.conf"
174+
175+
if [[ ! -d "$TKLDEV_DOCKER" ]]; then
176+
msg="TKLDev-Docker repo not found ($TKLDEV_DOCKER) - clone repo to"
177+
check_debug "$msg $TKLDEV_DOCKER or set TKLDEV_DOCKER env var"
178+
elif [[ ! -f "$INIT_CONF" ]]; then
174179
check_debug "Inithooks preseed file ($INIT_CONF) not found"
175180
else
176-
. "$INIT_CONF"
181+
source "$INIT_CONF"
177182
fi
178183
if [[ -z "$APP_DOMAIN" ]]; then
179184
check_debug "APP_DOMAIN not set"

0 commit comments

Comments
 (0)