Files
HAddons/.templates/99-custom_script.sh
ai-dev 8e559fa82c test
2025-10-11 11:17:26 +02:00

11 lines
233 B
Bash

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
CONFIGSOURCE="$(dirname "${CONFIGSOURCE}")"
if [ -f "$CONFIGSOURCE"/script.sh ]; then
"$CONFIGSOURCE"./script.sh
fi