#!/usr/bin/bash set -eu cat << EOF > ${pkgbuild_path}/knotserver.install post_install() { echo echo knotserver installed, with repositories stored in: ${knotserver_repo_path} echo echo Use "systemctl edit knotserver.service" to set "KNOT_SERVER_OWNER" to the DID of the knot owner, echo and set "KNOT_SERVER_HOSTNAME" to the FQDN of your knot. echo echo To enable git push over ssh for tangled repositories, run: echo " ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf" echo " usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user}" echo echo and reload sshd echo } EOF