#!/usr/bin/bash set -eu cat << EOF > ${pkgbuild_path}/README.md # knotserver-git Builds and packages \`knot\`. When installed, knotserver's database files will be stored in \`${knotserver_path}\`. Repositories will be stored in \`${knotserver_repo_path}\`. ## SSH SSH access is required to push to repositories. To enable, use the sshd_config.d drop-in, and give the \`${knotserver_user}\` user a shell and a home directory: \`\`\`bash ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user} \`\`\` EOF