docker-homebridge/rootfs/etc/s6-overlay/scripts/userdata.sh
2024-04-30 08:31:10 +02:00

15 lines
335 B
Bash
Executable file

#!/command/with-contenv sh
if [ -f /opt/homebridge/source.sh ]; then
. "/opt/homebridge/source.sh"
fi
# run user defined custom startup script
if [ -f /homebridge/startup.sh ]; then
echo "Executing user startup script /homebridge/startup.sh"
chmod +x /homebridge/startup.sh
cd /homebridge
/homebridge/startup.sh
fi
exit 0