X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_server.sh;h=fa4cc6e84433afc0355e2d73a7c37e2cfcc9f5e5;hb=484186225e8c5436b0fec1670f7c4f5e830a19ef;hp=a9debdb06e24d0e5764abaa62176db3ebe361b7e;hpb=29bfef06bcfa1a9fbc46130299ab4467899ab8f4;p=config diff --git a/buster/setup_scripts/setup_server.sh b/buster/setup_scripts/setup_server.sh index a9debdb..fa4cc6e 100755 --- a/buster/setup_scripts/setup_server.sh +++ b/buster/setup_scripts/setup_server.sh @@ -4,19 +4,23 @@ set -e # Provide maximum input for set_hostname_and_fqdn.sh. -if [ "$#" -ne 2 ]; then +if [ "$#" -lt 2 ]; then echo 'Need exactly two arguments (hostname, FQDN).' false fi hostname="$1" fqdn="$2" +additional_arg="$3" # Set up system without user environment. config_tree_prefix="${HOME}/config/buster" setup_scripts_dir="${config_tree_prefix}/setup_scripts" cd "${setup_scripts_dir}" -./setup.sh "${hostname}" "${fqdn}" server +./setup.sh "${hostname}" "${fqdn}" server "${additional_arg}" # If we have not yet set the shell for user plom, ensure it here. This # is mostly for convenience. usermod -s /bin/bash plom + +# Enable firewall. +systemctl enable nftables.service