mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-12 02:21:28 +02:00
Update 80-configuration.sh
This commit is contained in:
@@ -7,14 +7,14 @@ if bashio::config.has_value 'TZ'; then
|
|||||||
TIMEZONE=$(bashio::config 'TZ')
|
TIMEZONE=$(bashio::config 'TZ')
|
||||||
bashio::log.info "Setting timezone to $TIMEZONE"
|
bashio::log.info "Setting timezone to $TIMEZONE"
|
||||||
ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime && echo "$TIMEZONE" >/etc/timezone
|
ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime && echo "$TIMEZONE" >/etc/timezone
|
||||||
fi
|
fi || true
|
||||||
|
|
||||||
# Set keyboard
|
# Set keyboard
|
||||||
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/s6-overlay/s6-rc.d/svc-web/run
|
sed -i "1a export KEYBOARD=$KEYBOARD" /etc/s6-overlay/s6-rc.d/svc-web/run
|
||||||
fi
|
fi || true
|
||||||
|
|
||||||
# Set cli args
|
# Set cli args
|
||||||
if bashio::config.has_value 'CLI_ARGS'; then
|
if bashio::config.has_value 'CLI_ARGS'; then
|
||||||
@@ -22,7 +22,7 @@ if bashio::config.has_value 'CLI_ARGS'; then
|
|||||||
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/s6-overlay/s6-rc.d/svc-web/run
|
sed -i "1a export CLI_ARGS=$CLI_ARGS" /etc/s6-overlay/s6-rc.d/svc-web/run
|
||||||
fi
|
fi || true
|
||||||
|
|
||||||
# Set password
|
# Set password
|
||||||
if bashio::config.has_value 'PASSWORD'; then
|
if bashio::config.has_value 'PASSWORD'; then
|
||||||
@@ -30,4 +30,4 @@ if bashio::config.has_value 'PASSWORD'; then
|
|||||||
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/s6-overlay/s6-rc.d/svc-web/run
|
sed -i "1a export PASSWORD=$PASSWORD" /etc/s6-overlay/s6-rc.d/svc-web/run
|
||||||
fi
|
fi || true
|
||||||
|
|||||||
Reference in New Issue
Block a user