home · contact · privacy
Add missing deps for server to remain accessible.
[config] / bookworm / setup_scripts / setup_server.sh
1 #!/bin/sh
2 # Next setup steps for a server whose login policy has just been set from
3 # the outside via ./init_user_login.sh or ./init_user_and_keybased_login.sh
4 set -e
5 . ./misc.sh
6 . ../../misc.sh
7
8 expect_n_args 2 "(hostname, FQDN)" "$@"
9 hostname="$1"
10 fqdn="$2"
11 additional_arg="$3"
12
13 # Set up basic server system.
14 cd "${setup_scripts_dir}"
15 ./_setup.sh "${hostname}" "${fqdn}" server "$@"
16
17 # If we have not yet set the shell for user plom, ensure it here. This
18 # is mostly for convenience.
19 usermod -s /bin/bash plom
20
21 # Enable firewall.
22 systemctl enable nftables.service
23
24 touch "$HOME/setup_server_has_been_run"