Fixed wireshark group addition to only apply when wireshark is installed.
This commit is contained in:
@@ -45,5 +45,4 @@ install_kde() {
|
|||||||
install_kde_packages
|
install_kde_packages
|
||||||
chroot_systemd_enable sddm.service
|
chroot_systemd_enable sddm.service
|
||||||
copy_desktop_skel "$username"
|
copy_desktop_skel "$username"
|
||||||
run_cmd_in_chroot usermod -aG wireshark "$username"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,6 +111,11 @@ install_profile() {
|
|||||||
chroot_pacman_install $packages
|
chroot_pacman_install $packages
|
||||||
fi
|
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
|
# Enable profile services
|
||||||
services=$(get_profile_services "$profile_key")
|
services=$(get_profile_services "$profile_key")
|
||||||
for service in $services; do
|
for service in $services; do
|
||||||
|
|||||||
Reference in New Issue
Block a user