Skip to content

Commit

Permalink
Merge pull request #177 from unixpunk/patch-2
Browse files Browse the repository at this point in the history
Fix issues adding Ubuntu users to dialout, root groups
  • Loading branch information
meexmachina committed Feb 3, 2024
2 parents 93b639d + 524808c commit 19592fe
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@ sudo apt-get -y install swig avahi-daemon libavahi-client-dev python3-distutils
if grep -iq "NAME=\"Ubuntu\"" /etc/os-release; then
sudo apt-get install rpi.gpio-common
echo "Adding user `whoami` to dialout, root groups"

if [[ "`groups ``whoami`" == *`whoami`* ]]; then
echo "` User already in the group`"
else
sudo usermod -aG dialout, root "${USER}"
fi

sudo usermod -aG dialout,root "${USER}"
fi

sudo depmod -a
Expand Down

0 comments on commit 19592fe

Please sign in to comment.