From eeb446eaf300a10a2994d24548dd9937c024c0f3 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 19 Nov 2023 20:39:05 +0100 Subject: [PATCH] Add Ubuntu scripts --- ubuntu-20.04/init.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ubuntu-20.04/init.sh b/ubuntu-20.04/init.sh index 8a19ef7..6e5328d 100644 --- a/ubuntu-20.04/init.sh +++ b/ubuntu-20.04/init.sh @@ -223,15 +223,15 @@ ClevisNetInit() { options+=("${LUKSPART}" "") done IFS=$IFS_ORIG - DEV=$(whiptail --title "Select root LUKS part" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) + DEV=$(whiptail --title "Select root LUKS part" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) # shellcheck disable=SC2181 - if [ "$?" = "0" ]; then + if [ "$?" = "0" ]; then TANGURL=$(whiptail --title "Tang Server" --inputbox "URL" 0 30 "" 3>&1 1>&2 2>&3) if [ "$?" = "0" ]; then clevis luks bind -d "${DEV}" tang "{\"url\": \"${TANGURL}\"}" systemctl enable clevis-luks-askpass.path fi - fi + fi } SSHEnableRootLogin() {