Fixed wireshark group addition to only apply when wireshark is installed.

This commit is contained in:
2026-01-18 13:58:20 -05:00
parent 1e7fe78d66
commit 0aeb3163a5
2 changed files with 5 additions and 1 deletions

View File

@@ -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"
}

View File

@@ -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