mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update 01-custom_script.sh
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
# shellcheck shell=bash
|
||||
|
||||
slug="${HOSTNAME#*-}"
|
||||
bashio::log.info "Execute if existing custom script /config/${slug}.sh"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user