mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-10 09:35:58 +02:00
Switch to /etc/s6-overlay/s6-rc.d/svc-web/run
This commit is contained in:
@@ -13,7 +13,7 @@ fi
|
|||||||
if bashio::config.has_value 'KEYBOARD'; then
|
if bashio::config.has_value 'KEYBOARD'; then
|
||||||
KEYBOARD=$(bashio::config 'KEYBOARD')
|
KEYBOARD=$(bashio::config 'KEYBOARD')
|
||||||
bashio::log.info "Setting keyboard to $KEYBOARD"
|
bashio::log.info "Setting keyboard to $KEYBOARD"
|
||||||
sed -i "1a export KEYBOARD=$KEYBOARD" /etc/services.d/web/run
|
sed -i "1a export KEYBOARD=$KEYBOARD" /etc/s6-overlay/s6-rc.d/svc-web/run
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set cli args
|
# Set cli args
|
||||||
@@ -21,7 +21,7 @@ if bashio::config.has_value 'CLI_ARGS'; then
|
|||||||
bashio::log.info "Setting password to the value defined in options"
|
bashio::log.info "Setting password to the value defined in options"
|
||||||
CLI_ARGS=$(bashio::config 'CLI_ARGS')
|
CLI_ARGS=$(bashio::config 'CLI_ARGS')
|
||||||
bashio::log.info "Setting arguments to $CLI_ARGS"
|
bashio::log.info "Setting arguments to $CLI_ARGS"
|
||||||
sed -i "1a export CLI_ARGS=$CLI_ARGS" /etc/services.d/web/run
|
sed -i "1a export CLI_ARGS=$CLI_ARGS" /etc/s6-overlay/s6-rc.d/svc-web/run
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set password
|
# Set password
|
||||||
@@ -29,5 +29,5 @@ if bashio::config.has_value 'PASSWORD'; then
|
|||||||
bashio::log.info "Setting password to the value defined in options"
|
bashio::log.info "Setting password to the value defined in options"
|
||||||
PASSWORD=$(bashio::config 'PASSWORD')
|
PASSWORD=$(bashio::config 'PASSWORD')
|
||||||
bashio::log.info "Setting password to $PASSWORD"
|
bashio::log.info "Setting password to $PASSWORD"
|
||||||
sed -i "1a export PASSWORD=$PASSWORD" /etc/services.d/web/run
|
sed -i "1a export PASSWORD=$PASSWORD" /etc/s6-overlay/s6-rc.d/svc-web/run
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user