forked ssh and installed tinc
This commit is contained in:
13
tinc/rootfs/etc/services.d/sshd/run
Normal file
13
tinc/rootfs/etc/services.d/sshd/run
Normal file
@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user