#!/bin/sh set -ex if [ ! -f /etc/ssh/keys/ssh_host_ed25519_key ]; then ssh-keygen -t ed25519 -f /etc/ssh/keys/ssh_host_ed25519_key -N "" chmod 600 /etc/ssh/keys/ssh_host_ed25519_key chmod 644 /etc/ssh/keys/ssh_host_ed25519_key.pub fi /usr/sbin/sshd -e -D & if [ ! -f /home/git/knotserver.db ]; then touch /home/git/knotserver.db fi chown -R git:git /home/git su-exec git knotserver