X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Ffiles%2Fetc%2Frc.local%2FFAISERVER;fp=fai%2Fconfig%2Ffiles%2Fetc%2Frc.local%2FFAISERVER;h=6640ab14dda034414494a3bed6ad94c2b90db1fd;hb=a6f3eaed0a1eebb5c58853fb9faa8bfbec404de3;hp=764c62aa83676a57a29778356187fe21fe74427e;hpb=5ba4947c2a95c36034491b616d33efe3da1c1743;p=automated-distro-installer diff --git a/fai/config/files/etc/rc.local/FAISERVER b/fai/config/files/etc/rc.local/FAISERVER index 764c62a..6640ab1 100755 --- a/fai/config/files/etc/rc.local/FAISERVER +++ b/fai/config/files/etc/rc.local/FAISERVER @@ -26,7 +26,7 @@ echo "=================================" >/dev/console if [ ! -d "$FAI_CONFIGDIR/class" ]; then mkdir -p $FAI_CONFIGDIR cp -a /usr/share/doc/fai-doc/examples/simple/* $FAI_CONFIGDIR - ainsl /srv/fai/config/class/FAIBASE.var "LOGUSER=fai" + ainsl /srv/fai/config/class/FAIBASE.var "^LOGUSER=fai" 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) echo "APTPROXY=http://$myip:3142" >> /srv/fai/config/class/DEBIAN.var # determine a fast mirror for Ubuntu @@ -35,7 +35,7 @@ if [ ! -d "$FAI_CONFIGDIR/class" ]; then sed -i -e "s#MIRRORURL#$mirror#" /srv/fai/config/files/etc/apt/sources.list/UBUNTU fi # set the LOGUSER, wo we get all the logs from our install clients -ainsl /etc/fai/fai.conf "LOGUSER=fai" +ainsl /etc/fai/fai.conf "^LOGUSER=fai" # make index, then import the packages from the CD mirror apt-get update