diff --git a/setup.sh b/setup.sh index 96deffa..29a8c92 100644 --- a/setup.sh +++ b/setup.sh @@ -2,7 +2,7 @@ set -euo pipefail SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) -if [ $(whoami) -ne "root"]; then +if [ $(whoami) != "root" ]; then echo "not root, exiting" fi @@ -66,6 +66,7 @@ unset IFS exportfs -arv systemctl enable --now nfs-server +### SSH keys ### IFS=$'\n' for key in $(jq '."ssh-keys"[]?' $SCRIPT_DIR/data.json -r); do if ! grep -q "$key" $HOME/.ssh/authorized_keys; then