#!/usr/bin/env bash

source "$(dirname $0)/../dokku_common"

if docker inspect "$BUILDSTEP_IMAGE" >/dev/null 2>/dev/null; then
	script -q -c "docker pull '$BUILDSTEP_IMAGE'" /dev/null
fi

if [[ ! -f  "$DOKKU_ROOT/HOSTNAME" ]]; then
    echo $(hostname -f) > $DOKKU_ROOT/HOSTNAME
fi
