X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=all_new_2018%2Fsetup_server.sh;h=ea3437a444c899911e08800f2a613ffdcef627d6;hb=22dae555137b9f9b40c0adc6d2bd318ed8a7cd51;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