We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d8a0c2 commit c4fa7b0Copy full SHA for c4fa7b0
1 file changed
bt-iso
@@ -169,11 +169,16 @@ export BT
169
export BT_CONFIG="$BT/config"
170
. "$BT_CONFIG/common.cfg"
171
172
-INIT_CONF=/turnkey/public/tkldev-docker/inithooks.conf
173
-if [[ ! -f "$INIT_CONF" ]]; then
+TKLDEV_DOCKER=${TKLDEV_DOCKER:-/turnkey/public/tkldev-docker}
+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
179
check_debug "Inithooks preseed file ($INIT_CONF) not found"
180
else
- . "$INIT_CONF"
181
+ source "$INIT_CONF"
182
fi
183
if [[ -z "$APP_DOMAIN" ]]; then
184
check_debug "APP_DOMAIN not set"
0 commit comments