mirror of
https://github.com/Mesteriis/hassio-addons-avm.git
synced 2026-01-10 23:41:02 +01:00
v2
This commit is contained in:
10
.templates/99-custom_script.sh
Executable file
10
.templates/99-custom_script.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user