X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F37-portmap;h=16ef06a902f65ad81aaa9a281814d5c27afa25e9;hp=4dc5e3dae9135bf96cfebc8290f0b38e3b9eb5c1;hb=03c92fcd1f44a3a9f1a68d7af51f91964c4e41c4;hpb=6929c2c23325217d2a81b0882eb4ab7eb8676aac diff --git a/etc/grml/fai/config/scripts/GRMLBASE/37-portmap b/etc/grml/fai/config/scripts/GRMLBASE/37-portmap index 4dc5e3d..16ef06a 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/37-portmap +++ b/etc/grml/fai/config/scripts/GRMLBASE/37-portmap @@ -17,6 +17,7 @@ set -e CONFFILE="$target/etc/default/portmap" +# modify only if the file is present, nowadays we have rpcbind if [ -r "$CONFFILE" ] ; then # modify it iff we have portmap's default configuration if grep -q '^OPTIONS="-i 127.0.0.1"' "$CONFFILE" ; then @@ -25,21 +26,6 @@ if [ -r "$CONFFILE" ] ; then printf "Removing loopback-interface-only option (workaround #317358) in /etc/default/portmap: " sed -i 's/^OPTIONS.*/# OPTIONS="-i 127.0.0.1"/' "$CONFFILE" && echo OK || echo ERROR fi -else # no /etc/default/portmap available yet: - printf "Building fresh /etc/default/portmap configuration file." - cat > "$CONFFILE" << EOF -# Portmap configuration file -# -# Note: if you manually edit this configuration file, -# portmap configuration scripts will avoid modifying it -# (for example, by running 'dpkg-reconfigure portmap'). - -# If you want portmap to listen only to the loopback -# interface, uncomment the following line (it will be -# uncommented automatically if you configure this -# through debconf). -# OPTIONS="-i 127.0.0.1" -EOF fi ## END OF FILE #################################################################