tweaks with ufw

test
sean 7 years ago
parent 13e896fdb8
commit bcd3cd6192

@ -470,6 +470,15 @@ echo " dns-nameservers 127.0.0.53" >> /mnt/etc/network/interfaces.d/br0
echo "source-directory /etc/network/interfaces.d" > /mnt/etc/network/interfaces echo "source-directory /etc/network/interfaces.d" > /mnt/etc/network/interfaces
echo "Done." echo "Done."
echo "echo \"\"" >> /mnt/setup-chroot.sh
echo "echo \"Enabling UFW on boot...\"" >> /mnt/setup-chroot.sh
echo "errors=\$(systemctl enable ufw 2>&1 1>/dev/null)" >> /mnt/setup-chroot.sh
echo 'if ! [ "$?" = "0" ]; then '>> /mnt/setup-chroot.sh
echo ' echo "Failed to enable UFW - $errors"' >> /mnt/setup-chroot.sh
echo " exit 1">> /mnt/setup-chroot.sh
echo "fi">> /mnt/setup-chroot.sh
echo "echo \"Done.\"" >> /mnt/setup-chroot.sh
exit 0 exit 0
# commented out for debugging # commented out for debugging

Loading…
Cancel
Save