ingress #1
|
|
@ -1,32 +0,0 @@
|
|||
#!/usr/bin/with-contenv bashio
|
||||
set -e
|
||||
|
||||
bashio::log.info "=== DIAGNOSTIC DE L'ENVIRONNEMENT ==="
|
||||
|
||||
bashio::log.info "1. Variables d'environnement:"
|
||||
bashio::log.info " PATH: ${PATH}"
|
||||
bashio::log.info " HOME: ${HOME}"
|
||||
|
||||
bashio::log.info "2. Commandes disponibles (avec which):"
|
||||
for cmd in date bash sh nginx git curl cook; do
|
||||
if which "$cmd" >/dev/null 2>&1; then
|
||||
bashio::log.info " ✅ $cmd: $(which $cmd)"
|
||||
else
|
||||
bashio::log.warning " ⚠️ $cmd: introuvable"
|
||||
fi
|
||||
done
|
||||
|
||||
bashio::log.info "3. Contenu de /usr/bin/ (extrait):"
|
||||
ls -la /usr/bin/ | head -10
|
||||
|
||||
bashio::log.info "4. Test de la commande 'date' directe:"
|
||||
date && bashio::log.info " ✅ date fonctionne" || bashio::log.error " ❌ date ne fonctionne PAS"
|
||||
|
||||
bashio::log.info "5. Type de l'add-on:"
|
||||
if [ -f /usr/lib/bashio/bashio ]; then
|
||||
bashio::log.info " ✅ bashio trouvé"
|
||||
else
|
||||
bashio::log.error " ❌ bashio non trouvé"
|
||||
fi
|
||||
|
||||
bashio::log.info "=== FIN DU DIAGNOSTIC ==="
|
||||
Loading…
Reference in a new issue