···11#!/usr/bin/bash
22+set -eu
23cat << EOF > ${pkgbuild_path}/README.md
34# knotserver-git
45···1011## SSH
11121213SSH access is required to push to repositories. To enable, use the sshd_config.d drop-in, and give the
1313-\`${knotserver_user:-git}\` user a shell and a home directory:
1414+\`${knotserver_user}\` user a shell and a home directory:
14151516\`\`\`bash
1617ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf
1717-usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user:-git}
1818+usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user}
1819\`\`\`
19202021EOF
+3-2
src/knotserver-shared/install.sh
···11#!/usr/bin/bash
22+set -eu
23cat << EOF > ${pkgbuild_path}/knotserver.install
34post_install() {
45 echo
55- echo knotserver installed, with repositories stored in: ${knotserver_repo_path:-/var/lib/tangled/repositories}
66+ echo knotserver installed, with repositories stored in: ${knotserver_repo_path}
67 echo
78 echo Use "systemctl edit knotserver.service" to set "KNOT_SERVER_OWNER" to the DID of the knot owner,
89 echo and override "KNOT_SERVER_HOSTNAME" if 'hostname' does not return the FQDN echo of your knot.
910 echo
1011 echo To enable git push over ssh for tangled repositories, run:
1112 echo " ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf"
1212- echo " usermod -s /usr/bin/bash -d ${knotserver_repo_path:-/var/lib/tangled/repositories} ${knotserver_user:-git}"
1313+ echo " usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user}"
1314 echo
1415 echo and reload sshd
1516 echo
···11#!/usr/bin/bash
22+set -eu
23cat << EOF > ${pkgbuild_path}/README.md
34# knotserver
45···1011## SSH
11121213SSH access is required to push to repositories. To enable, use the sshd_config.d drop-in, and give the
1313-\`${knotserver_user:-git}\` user a shell and a home directory:
1414+\`${knotserver_user}\` user a shell and a home directory:
14151516\`\`\`bash
1617ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf
1717-usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user:-git}
1818+usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user}
1819\`\`\`
19202021EOF