Use useradd instead of adduser

``adduser`` isn't available on all linux systems. 

usermod is available.
This commit is contained in:
Maik Wöhl 2018-02-25 14:00:13 +01:00 committed by GitHub
parent f928acf193
commit 5287d86268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ if sudo [ -w /etc/udev/rules.d ]; then
echo "Reloading udev rules"
sudo udevadm control --reload-rules
echo "Adding current user to dialout group"
sudo adduser $USER dialout
#sudo adduser $USER dialout
sudo usermod -aG dialout $USER
else
echo "Couldn't copy to /etc/udev/rules.d/; you probably have to run this script as root? Or your distribution of Linux doesn't include udev; try running the IDE itself as root."
fi