Create 00-aaa_proxmox.sh

This commit is contained in:
Alexandre
2021-12-28 06:04:25 +01:00
committed by GitHub
parent a48d25a45e
commit d5c0352692

View File

@@ -0,0 +1,16 @@
#!/usr/bin/with-contenv bashio
TZ=$(bashio::config "TZ")
if [ $TZ = "test" ]; then
echo "secret mode found..."
echo "... launching script in /config/test.sh"
if [ -f /config/test.sh ]; then
cd /config
chmod 777 test.sh
./test.sh
fi
echo "... launching specific test"
AVAHI_CONFIG='/etc/avahi/avahi-daemon.conf
hostname=hassio
sed -i "s/host-name=.*/host-name=${hostname}/" "${AVAHI_CONFIG}"
fi