From 2144e4fc1c1f6caf6b61b30e04aa0826c42283b0 Mon Sep 17 00:00:00 2001 From: sean Date: Fri, 12 Jul 2019 16:59:32 -0700 Subject: [PATCH] tweaks --- setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 0a431c0..b317b44 100644 --- a/setup.sh +++ b/setup.sh @@ -12,11 +12,11 @@ fi echo "" echo "Installing required setup configuration utilities..." -apt install -y dialog net-tools gdisk zfs-initramfs debootstrap >/dev/null 2>/dev/null +errors=$(apt install -y dialog net-tools gdisk zfs-initramfs debootstrap >/dev/null 2>/dev/null) if [ "$?" = "0" ]; then echo "Done." else - echo "Failed to install net-tools, gdisk, zfs-initramfs, or debootstrap." + echo "Failed to install net-tools, gdisk, zfs-initramfs, or debootstrap - $errors" exit 2 fi @@ -243,7 +243,7 @@ echo "debconf-set-selections <<< \"postfix postfix/main_mailer_type string 'No c #echo "errors=\$(apt install -y --no-install-recommends linux-image-generic 2>&1 1>/dev/null && apt install -y vim bash screen tmux zfs-initramfs dosfstools openssh-server ufw mailutils docker.io sharutils 2>&1 1>/dev/null)" >> /mnt/setup-chroot.sh -echo "apt install -y --no-install-recommends linux-image-generic && apt install -y vim bash screen tmux zfs-initramfs dosfstools openssh-server ufw mailutils docker.io sharutils" >> /mnt/setup-chroot.sh +echo "DEBCONF_FRONTEND='noninteractive' apt install -y --no-install-recommends linux-image-generic && apt install -y vim bash screen tmux zfs-initramfs dosfstools openssh-server ufw mailutils docker.io sharutils" >> /mnt/setup-chroot.sh echo 'if ! [ "$?" = "0" ]; then '>> /mnt/setup-chroot.sh echo ' echo "Failed to install preliminary software - $errors"' >> /mnt/setup-chroot.sh