X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F34-hosts;h=0b02c35cd47f76851d5d2f28e6c78b88457527c1;hb=9dafaad2fe959f195d68a38655f60d00ee028256;hp=3f9cec18301ef14455b3f32c7f219cfc184c9fcc;hpb=f3b335ea5c94d5cf24ec6b9184106b298849f311;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/34-hosts b/etc/grml/fai/config/scripts/GRMLBASE/34-hosts index 3f9cec1..0b02c35 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/34-hosts +++ b/etc/grml/fai/config/scripts/GRMLBASE/34-hosts @@ -11,10 +11,10 @@ set -e HOSTNAME='' [ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf -[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local +[ -n "$GRML_LIVE_LOCAL_CONFIG" ] && . "$GRML_LIVE_LOCAL_CONFIG" [ -n "$HOSTNAME" ] || HOSTNAME=grml -fcopy /etc/hosts +fcopy -v /etc/hosts # replace $HOSTNAME with the real hostname: sed -i "s/\$HOSTNAME/$HOSTNAME/" $target/etc/hosts