Files
hassio-addons/.templates/99-custom_script.sh
2022-04-06 07:03:32 +02:00

10 lines
226 B
Bash

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