X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FFAISERVER%2F10-conffiles;h=578255f8fc8a4d58098f9367891309df2f2e2302;hb=7ade5e2c6113530c5f99cfc95880897fcb479f39;hp=de17f53c407d7345494a4a53064402fa0e0b2752;hpb=056eb4e90e13b2d8f7cbb8c3b875f35bf0fa207e;p=automated-distro-installer diff --git a/fai/config/scripts/FAISERVER/10-conffiles b/fai/config/scripts/FAISERVER/10-conffiles index de17f53..578255f 100755 --- a/fai/config/scripts/FAISERVER/10-conffiles +++ b/fai/config/scripts/FAISERVER/10-conffiles @@ -1,7 +1,7 @@ #! /bin/bash -fcopy -Bvr /etc/fai -fcopy -Bv /etc/fai/apt/sources.list /etc/dhcp/dhcpd.conf +fcopy -BvrS /etc/fai +fcopy -BvS /etc/dhcp/dhcpd.conf if [ $FAI_ACTION = "install" -o $FAI_ACTION = "dirinstall" ] ; then @@ -18,7 +18,7 @@ if [ $FAI_ACTION = "install" -o $FAI_ACTION = "dirinstall" ] ; then ainsl -av /etc/apt/apt.conf.d/02proxy 'Acquire::http::Proxy "http://127.0.0.1:3142";' # create some host entries - myip=$(ip addr show up| grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | cut -d / -f 1 | grep -v 127.0.0.1) + myip=$(ip addr show up| grep -P -o '(?<=inet )[^/]+' | grep -v 127.0.0.1) ainsl /etc/hosts "$myip faiserver" # that's me ainsl /etc/hosts "192.168.33.100 demohost" ainsl /etc/hosts "192.168.33.101 xfcehost"