mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-01 19:00:33 +02:00
Handle terminal defaults on add-on upgrades
This commit is contained in:
@@ -8,7 +8,7 @@ declare username
|
|||||||
declare password=""
|
declare password=""
|
||||||
declare workspace
|
declare workspace
|
||||||
|
|
||||||
if ! bashio::config.true 'enable_terminal'; then
|
if bashio::config.has_value 'enable_terminal' && ! bashio::config.true 'enable_terminal'; then
|
||||||
bashio::log.info "svc-claude-terminal: terminal disabled; idling"
|
bashio::log.info "svc-claude-terminal: terminal disabled; idling"
|
||||||
exec sleep infinity
|
exec sleep infinity
|
||||||
fi
|
fi
|
||||||
@@ -18,7 +18,10 @@ if ! command -v ttyd >/dev/null 2>&1 || ! command -v tmux >/dev/null 2>&1 || ! c
|
|||||||
exec sleep infinity
|
exec sleep infinity
|
||||||
fi
|
fi
|
||||||
|
|
||||||
username="$(bashio::config 'terminal_username')"
|
username="claude"
|
||||||
|
if bashio::config.has_value 'terminal_username'; then
|
||||||
|
username="$(bashio::config 'terminal_username')"
|
||||||
|
fi
|
||||||
if bashio::config.has_value 'terminal_password'; then
|
if bashio::config.has_value 'terminal_password'; then
|
||||||
password="$(bashio::config 'terminal_password')"
|
password="$(bashio::config 'terminal_password')"
|
||||||
elif bashio::config.has_value 'PASSWORD'; then
|
elif bashio::config.has_value 'PASSWORD'; then
|
||||||
|
|||||||
Reference in New Issue
Block a user