mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Create 00-aaa_proxmox.sh
This commit is contained in:
16
qbittorrent/rootfs/etc/cont-init.d/00-aaa_proxmox.sh
Normal file
16
qbittorrent/rootfs/etc/cont-init.d/00-aaa_proxmox.sh
Normal 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
|
||||
Reference in New Issue
Block a user