mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
12
teamspeak/rootfs/etc/services.d/logs.sh
Normal file
12
teamspeak/rootfs/etc/services.d/logs.sh
Normal 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
|
||||
Reference in New Issue
Block a user