X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/git-logo.png?a=blobdiff_plain;f=bookworm%2Fsetup_scripts%2Fsetup.sh;h=0502de7e39d82f052aad9a8950293f71408512d5;hb=5f8840a7eed21f8601ce5055e0e605c98f06d0d2;hp=815683edbd91051da2c0eb9e20128a06bfda986c;hpb=f50c2ff925fb389818dcb23a684acc0275821a36;p=config diff --git a/bookworm/setup_scripts/setup.sh b/bookworm/setup_scripts/setup.sh index 815683e..0502de7 100755 --- a/bookworm/setup_scripts/setup.sh +++ b/bookworm/setup_scripts/setup.sh @@ -1,18 +1,13 @@ #!/bin/sh set -e debian_version="bookworm" +. ./misc.sh -# Provide maximum input for set_hostname_and_fqdn.sh. -if [ "$#" -lt 2 ]; then - echo 'Need at least two arguments (hostname, FQDN).' - false -fi +expect_n_args 2 "(hostname, FQDN)" "$@" hostname="$1" fqdn="$2" shift 2 -config_tree_prefix="${HOME}/config/${debian_version}" -setup_scripts_dir="${config_tree_prefix}/setup_scripts" cd "${setup_scripts_dir}" # Adapt /etc/ to our needs by copying from ./etc_files. This will set