#!/usr/bin/env sh mkdir --parents /keys if [ ! -f /keys/ssh_host_ed25519_key ] then ssh-keygen -t ed25519 -f /keys/ssh_host_ed25519_key -N "" fi chmod 600 /keys/ssh_host_ed25519_key chmod 644 /keys/ssh_host_ed25519_key.pub chown root:root /keys/ssh_host_ed25519_key /keys/ssh_host_ed25519_key.pub /usr/sbin/sshd -D -h /keys/ssh_host_ed25519_key & chown git:git /home/git exec sudo -u git -E /usr/bin/sh -c "cd /home/git && /usr/libexec/knot server \"$@\""