diff --git a/qbittorrent/rootfs/etc/cont-init.d/00-aaa_proxmox.sh b/qbittorrent/rootfs/etc/cont-init.d/00-aaa_proxmox.sh new file mode 100644 index 000000000..f33aa0439 --- /dev/null +++ b/qbittorrent/rootfs/etc/cont-init.d/00-aaa_proxmox.sh @@ -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