X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=faiserver-setup;h=959b7d33dea68fc765059c84478678cea9e98291;hb=ceeb4e46d3bb326d01fcc7ed98d94ab0b580eda3;hp=0501baca8c6da90d5f31e9c9be9ae14d970debe1;hpb=c59144a600fd661d9512d8a5005aa0f5bc29bf0d;p=automated-distro-installer diff --git a/faiserver-setup b/faiserver-setup index 0501bac..959b7d3 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 +324,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