From d5c03526921d1d68200bc4966852f86ac09ca164 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 28 Dec 2021 06:04:25 +0100 Subject: [PATCH] Create 00-aaa_proxmox.sh --- .../rootfs/etc/cont-init.d/00-aaa_proxmox.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 qbittorrent/rootfs/etc/cont-init.d/00-aaa_proxmox.sh 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