mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
15 lines
338 B
Bash
15 lines
338 B
Bash
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
|
|
slug="${HOSTNAME#*-}"
|
|
bashio::log.info "Execute /config/${slug}.sh if existing"
|
|
|
|
if [ -f /config/"${slug}".sh ]; then
|
|
bashio::log.info "... script found, executing"
|
|
chmod +x /config/"${slug}".sh
|
|
/./config/"${slug}".sh
|
|
else
|
|
bashio::log.info "... no script found"
|
|
fi
|
|
|