From 0b562b0ccf3d25f83700bd7ee12ced10e4d2240d Mon Sep 17 00:00:00 2001 From: "Jean (east-high-Nerd)" Date: Wed, 31 Dec 2025 15:25:03 -0500 Subject: [PATCH] Made groups to add user to when not Fedora into a variable with an if statement to add 'netdev' to that list if the OS is Debian, due to elementaryOS not having the 'netdev' group --- post-inst.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/post-inst.sh b/post-inst.sh index 2ea766f..31d276b 100755 --- a/post-inst.sh +++ b/post-inst.sh @@ -97,10 +97,16 @@ else groupadd --gid 108 lpadmin fi + groups='audio,cdrom,dip,floppy,plugdev,sudo,video,dialout,lpadmin' + + if [[ "${ID}" == 'debian' ]]; then + groups+=',netdev' + fi + usermod \ -a \ -G \ - audio,cdrom,dip,floppy,netdev,plugdev,sudo,video,dialout,lpadmin \ + ${groups} \ ${username} fi