From 0aeb3163a540ab6087100e1705a395eb5d63ee4a Mon Sep 17 00:00:00 2001 From: Logan Fick Date: Sun, 18 Jan 2026 13:58:20 -0500 Subject: [PATCH] Fixed wireshark group addition to only apply when wireshark is installed. --- lib/desktop/kde.sh | 1 - profiles/registry.sh | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/desktop/kde.sh b/lib/desktop/kde.sh index 7bec6ec..959952c 100644 --- a/lib/desktop/kde.sh +++ b/lib/desktop/kde.sh @@ -45,5 +45,4 @@ install_kde() { install_kde_packages chroot_systemd_enable sddm.service copy_desktop_skel "$username" - run_cmd_in_chroot usermod -aG wireshark "$username" } diff --git a/profiles/registry.sh b/profiles/registry.sh index 8921751..b60ad29 100644 --- a/profiles/registry.sh +++ b/profiles/registry.sh @@ -111,6 +111,11 @@ install_profile() { chroot_pacman_install $packages fi + # Add user to wireshark group if wireshark was installed + if run_cmd_in_chroot getent group wireshark > /dev/null 2>&1; then + run_cmd_in_chroot usermod -aG wireshark "$username" + fi + # Enable profile services services=$(get_profile_services "$profile_key") for service in $services; do