this repo has no description
1#!/bin/sh
2
3set -ex
4
5if [ ! -f /etc/ssh/keys/ssh_host_ed25519_key ]; then
6 ssh-keygen -t ed25519 -f /etc/ssh/keys/ssh_host_ed25519_key -N ""
7 chmod 600 /etc/ssh/keys/ssh_host_ed25519_key
8 chmod 644 /etc/ssh/keys/ssh_host_ed25519_key.pub
9fi
10/usr/sbin/sshd -e -D &
11
12if [ ! -f /home/git/knotserver.db ]; then
13 touch /home/git/knotserver.db
14fi
15chown -R git:git /home/git
16su-exec git knotserver