home · contact · privacy
Improve Bookworm server setup config.
[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.
4 set -e
5 . ./misc.sh
6
7 expect_n_args 2 "(hostname, FQDN)" "$@"
8 hostname="$1"
9 fqdn="$2"
10 additional_arg="$3"
11
12 # If we have not yet set the shell for user plom, ensure it here. This
13 # is mostly for convenience.
14 usermod -s /bin/bash plom
15
16 # Enable firewall.
17 systemctl enable nftables.service