Files
addons/ssh/rootfs/etc/services.d/sshd/run
Pascal Vizeli 1abda8bfed SSH: Use new banner and tempio (#1800)
* 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>
2021-02-02 19:05:08 +01:00

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