mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
* SSH: Use new banner and tempio * fix change for tests * Update ssh/build.json Co-authored-by: Franck Nijhof <git@frenck.dev> * fix build Co-authored-by: Franck Nijhof <git@frenck.dev>
14 lines
511 B
Plaintext
14 lines
511 B
Plaintext
#!/usr/bin/with-contenv bashio
|
|
# ==============================================================================
|
|
# Start sshd service if enabled
|
|
# ==============================================================================
|
|
|
|
# If SSH is disabled, use a fake sleep process
|
|
if ! bashio::var.has_value "$(bashio::addon.port 22)"; then
|
|
bashio::log.warning "SSH port is disabled. Prevent start of SSH server."
|
|
exec sleep infinity
|
|
fi
|
|
|
|
bashio::log.info "Starting the SSH daemon..."
|
|
exec /usr/sbin/sshd -D -e
|