Arch PKGBUILDs for https://tangled.org/@tangled.org/core
arch
pkgbuild
1#!/usr/bin/bash
2set -eu
3cat << EOF > ${pkgbuild_path}/README.md
4# knotserver
5
6Builds and packages \`knot\`.
7
8When installed, knotserver's database files will be stored in \`${knotserver_path}\`. Repositories will
9be stored in \`${knotserver_repo_path}\`.
10
11## SSH
12
13SSH access is required to push to repositories. To enable, use the sshd_config.d drop-in, and give the
14\`${knotserver_user}\` user a shell and a home directory:
15
16\`\`\`bash
17ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf
18usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user}
19\`\`\`
20
21EOF