Update the add-on to Bamboo v0.1.7 and add the SSH server options

This commit is contained in:
Veillax committed 2026-10-30 21:50:37 -06:00
1 parent 7317053f25
commit 8f5e60da80
7 files changed
+39 -4

No files matched your search

+13
View File
@@ -14,6 +14,19 @@ fi
export BAMBOO_HAMMERHEAD="${url%/}"
export BAMBOO_TOKEN="${token}"
# The SSH server is opt-in. The keys listed in the configuration are the only ones that may sign in.
if bashio::config.true 'ssh'; then
keys_file=/data/authorized_keys
jq -r '.ssh_keys[]? | select(. != null and . != "")' /data/options.json > "${keys_file}"
if [ ! -s "${keys_file}" ]; then
bashio::log.fatal "SSH is turned on but no public keys are listed. Add at least one in the SSH public keys setting, then start the add-on again."
bashio::exit.nok
fi
export BAMBOO_SSH=1
export BAMBOO_SSH_KEYS="${keys_file}"
export SHELL=/bin/bash
fi
# Service discovery is opt-in: Bamboo reports what it finds as suggested targets in Hammerhead.
if bashio::config.true 'discover'; then
export BAMBOO_DISCOVER=1