Skip to content

Commit 7c8de99

Browse files
committed
Option to remove Firefox during browser install
1 parent d522138 commit 7c8de99

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

fqs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,15 @@ setup_protonge() {
240240
mkdir -p ~/.steam/root/compatibilitytools.d && curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep "browser_download_url.*tar.gz" | cut -d\" -f4 | xargs curl -L | tar -xz -C ~/.steam/root/compatibilitytools.d
241241
}
242242

243+
remove_firefox() {
244+
read -r -p "Now that you have your new browser installed, do you want to remove Firefox (y/N) " firefox_removal
245+
if [[ "$firefox_removal" =~ ^[yY]$ ]]; then
246+
sudo dnf remove firefox -y
247+
else
248+
echo "Skipping..."
249+
fi
250+
}
251+
243252
# Install the preferred browser.
244253
install_browser() {
245254
echo "Choose your preferred browser:"
@@ -253,6 +262,7 @@ install_browser() {
253262
1)
254263
sudo dnf config-manager addrepo --from-repofile=https://repo.secureblue.dev/secureblue.repo
255264
sudo dnf upgrade --refresh -y && sudo dnf install trivalent -y
265+
remove_firefox
256266
;;
257267
2)
258268
curl -fsS https://dl.brave.com/install.sh | sh
@@ -264,13 +274,16 @@ install_browser() {
264274
else
265275
echo "Skipping Brave debloat step."
266276
fi
277+
remove_firefox
267278
;;
268279
3)
269280
curl -fsSL https://rpm.librewolf.net/librewolf-repo.repo | pkexec tee /etc/yum.repos.d/librewolf.repo >/dev/null
270281
sudo dnf upgrade --refresh -y && sudo dnf install librewolf -y
282+
remove_firefox
271283
;;
272284
4)
273285
sudo dnf install chromium -y
286+
remove_firefox
274287
;;
275288
*)
276289
echo "Invalid choice. Using default (Firefox)."
@@ -455,7 +468,7 @@ setup_config() {
455468
# ======== Main =========
456469
echo "FQS (Fedora Quick Start) Script"
457470
echo "Finish your post-installation steps easily."
458-
echo "By Vili (@vil)"
471+
echo "By Vili (@vil) - https://vili.dev"
459472
echo
460473
echo "You will be prompted for sudo password as needed."
461474
echo
@@ -627,7 +640,7 @@ if [[ "$input" =~ ^[yY]$ ]]; then
627640
fi
628641
echo
629642

630-
read -r -p "Apply some system hardening (usbguard, fail2ban, sysctl settings, MAC randomization)? (y/N) " harden_choice
643+
read -r -p "Apply some system hardening (usbguard, fail2ban, hardened kernel params, MAC randomization, disable cups and avahi)? (y/N) " harden_choice
631644
if [[ "$harden_choice" =~ ^[yY]$ ]]; then
632645
echo "Applying system hardening..."
633646
sleep 2
@@ -647,7 +660,7 @@ if [[ "$input" =~ ^[yY]$ ]]; then
647660
echo "Skipping Secure Boot setup..."
648661
fi
649662

650-
echo "All steps complete, remember to star this on GitHub. Goodbye!"
663+
echo "All steps complete and your system is now rock solid. Remember to star this on GitHub, goodbye!"
651664
else
652665
echo "Script cancelled. Goodbye!"
653666
fi

0 commit comments

Comments
 (0)