#!/bin/bash -xe # Run the script from the directory where it lives, so we can # easily access config files etc. cd "$(dirname "$(readlink -f $0)")" if ! [ -f apache/certs/humbug-self-signed.key ]; then echo "Copy humbug-self-signed.key to $(pwd)/apache/certs, but don't check it into git" exit 1 fi # Configure sshd to disallow password logins cat >>/etc/ssh/sshd_config <>/etc/apt/sources.list <