
# Determine if stdout is a terminal...
if test -t 1; then
    # Determine if colors are supported...
    ncolors=$(tput colors)

    if test -n "$ncolors" && test "$ncolors" -ge 8; then
        BOLD="$(tput bold)"
        YELLOW="$(tput setaf 3)"
        GREEN="$(tput setaf 2)"
        NC="$(tput sgr0)"
    fi
fi

echo "${BOLD}Running update on Admin container...${NC}" >&2

composer install
php artisan migrate
php artisan tenants:migrate
php artisan tenants:seed

echo "${BOLD}Update finished...${NC}" >&2

