Create logs.sh

https://github.com/alexbelgium/hassio-addons/issues/632
This commit is contained in:
Alexandre
2023-01-07 18:56:02 +01:00
committed by GitHub
parent 9a2315cf6d
commit 5007ae6ced

View File

@@ -0,0 +1,12 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
if [ ! -f /touched ]; then
until [[ -n $(cat /data/*_1.log 2>/dev/null) ]]; do
sleep 1
done
bashio::log.info "Here are the admin informations:"
cat /data/*_1.log
touch /touched
rm /etc/services.d/logs.sh
fi