X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;ds=sidebyside;f=all_new_2018%2Fsetup_server.sh;h=ea3437a444c899911e08800f2a613ffdcef627d6;hb=ed70f670e0aa29022aa9fbab587e7638ad3a3ce2;hp=e4fbaa2700aa9efbdc3f38027c6861fb735d6f0a;hpb=d57ddacf1935302793b7e11f5ab1ea8fbda51a09;p=config diff --git a/all_new_2018/setup_server.sh b/all_new_2018/setup_server.sh index e4fbaa2..ea3437a 100755 --- a/all_new_2018/setup_server.sh +++ b/all_new_2018/setup_server.sh @@ -5,7 +5,7 @@ set -e # Provide maximum input for set_hostname_and_fqdn.sh. if [ "$#" -ne 2 ]; then - echo "Need exactly two arguments (hostname, FQDN)." + echo 'Need exactly two arguments (hostname, FQDN).' false fi hostname="$1" @@ -19,6 +19,11 @@ fqdn="$2" # Set hostname and FQDN. ./set_hostname_and_fqdn.sh "${hostname}" "${fqdn}" +# Some debconf selections we don't want to get asked during coming +# install actions. +echo 'iptables-persistent iptables-persistent/autosave_v4 boolean false' | debconf-set-selections +echo 'iptables-persistent iptables-persistent/autosave_v6 boolean false' | debconf-set-selections + # Ensure package installation state as defined by what packages are # defined as required by Debian policy and by settings in ./apt-mark/. apt update