X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=faiserver-setup;h=4003a2466207c5fc458b71067cefa70242abb110;hb=137ffae7de84a51c4b438ccf2fb50f5571f522a6;hp=0501baca8c6da90d5f31e9c9be9ae14d970debe1;hpb=051fc89e27bd812a1a45292f6d2a18803ce6f394;p=automated-distro-installer diff --git a/faiserver-setup b/faiserver-setup index 0501bac..4003a24 100755 --- a/faiserver-setup +++ b/faiserver-setup @@ -19,10 +19,9 @@ x="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace" [[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@" -LC_USEBASHRC=t; . ~/.bashrc usage() { - cat < limittime )); then + if (( cachetime > limittime )); then update=true fi fi @@ -190,9 +194,14 @@ EOF # fi -$sed -f - /etc/fai/nfsroot.conf <>/srv/fai/nfsroot/root/.ssh/known_hosts @@ -309,6 +318,7 @@ done # We could also just dump things in /srv/tftp, but fai # has some defaults, which I don't even use, which expect # the other directory, so it's kind of a tossup, whatever. +# This means fai's example isc-dhcp-server filename directory should remove the fai/ prefix. sed -ri 's,^ *(TFTP_DIRECTORY=).*,\1"/srv/tftp/fai",' /etc/default/tftpd-hpa systemctl restart tftpd-hpa