1#!/usr/bin/bash
2set -eu
3cat << EOF > ${pkgbuild_path}/knotserver.install
4post_install() {
5 echo
6 echo knotserver installed, with repositories stored in: ${knotserver_repo_path}
7 echo
8 echo Use "systemctl edit knotserver.service" to set "KNOT_SERVER_OWNER" to the DID of the knot owner,
9 echo and set "KNOT_SERVER_HOSTNAME" to the FQDN of your knot.
10 echo
11 echo To enable git push over ssh for tangled repositories, run:
12 echo " ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf"
13 echo " usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user}"
14 echo
15 echo and reload sshd
16 echo
17}
18EOF