Actualiser cookcli/rootfs/etc/services.d/cookcli/run

This commit is contained in:
TheThomaas 2026-09-06 14:11:06 +00:00
parent dfc1b9508c
commit 9845b81446

View file

@ -5,15 +5,15 @@ RECIPES_PATH=$(bashio::config 'recipes_path')
PORT=9081 PORT=9081
# Récupérer le chemin Ingress # Récupérer le chemin Ingress
INGRESS_TOKEN=$(bashio::config 'ingress_token') #INGRESS_TOKEN=$(bashio::config 'ingress_token')
if [ -n "$INGRESS_TOKEN" ]; then #if [ -n "$INGRESS_TOKEN" ]; then
INGRESS_PATH="/api/hassio_ingress/${INGRESS_TOKEN}" # INGRESS_PATH="/api/hassio_ingress/${INGRESS_TOKEN}"
bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" # bashio::log.info "Chemin Ingress: ${INGRESS_PATH}"
else #else
INGRESS_PATH="" # INGRESS_PATH=""
fi #fi
bashio::log.info "Démarrage de CookCLI sur le port ${PORT}..." bashio::log.info "${INGRESS_PATH} Démarrage de CookCLI sur le port ${PORT}..."
# Si CookCLI supporte --base-path # Si CookCLI supporte --base-path
if [ -n "$INGRESS_PATH" ]; then if [ -n "$INGRESS_PATH" ]; then