Files
hassio-addons/teamspeak/rootfs/etc/services.d/logs.sh
2023-02-08 17:57:24 +00:00

13 lines
295 B
Bash
Executable File

#!/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