tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user