X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=faiserver-setup;h=168dcda6d0518e09652ebfbb0c59fbbfcc4bd56d;hb=5c8f49a1d5321a0d3f01284f0087740af070962b;hp=0501baca8c6da90d5f31e9c9be9ae14d970debe1;hpb=051fc89e27bd812a1a45292f6d2a18803ce6f394;p=automated-distro-installer diff --git a/faiserver-setup b/faiserver-setup index 0501bac..168dcda 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