summaryrefslogtreecommitdiff
path: root/install-artix.sh
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2024-04-18 19:27:31 +0100
committerBlake Romero <blake@blkrom.com>2024-04-18 19:27:31 +0100
commit5d82b0f181c0202346e99a55811f9313fc5f339f (patch)
tree77cde0041469a5f0ebdbf08f3b647f30fa132d67 /install-artix.sh
parentfaa91cfc1db4fb26ffdcc96d09247b8daef4881c (diff)
Enable firewall & added clean-up commands
Diffstat (limited to 'install-artix.sh')
-rwxr-xr-xinstall-artix.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/install-artix.sh b/install-artix.sh
index f53c9ec..cf55ff9 100755
--- a/install-artix.sh
+++ b/install-artix.sh
@@ -308,6 +308,9 @@ pac_options=ILoveCandy
sed "s/# Misc options/# Misc options\n${pac_options}/g" \
-i /mnt/etc/pacman.conf
+# Enable firewall
+sed "s/ENABLED=no/ENABLED=yes/" -i /mnt/etc/ufw/ufw.conf
+
# Set MAKEFLAGS to match CPU threads for faster compiling
cp /etc/makepkg.conf /etc/makepkg.conf.bak
sed "s/#MAKEFLAGS=\".*\"/MAKEFLAGS=\"-j$(nproc)\"/" \
@@ -409,10 +412,10 @@ if [[ "${enable_aur}" == true ]]; then
echo "AUR helper installation complete!"
fi
-# # FINISH
-# swapoff -a
-# umount -R /mnt
-# [[ "${encrypt}" == true ]] && cryptsetup close root
+# FINISH
+swapoff -a
+umount -R /mnt
+[[ "${encrypt}" == true ]] && cryptsetup close root
set +x
echo "