1749857917
This commit is contained in:
@@ -4,21 +4,6 @@ set -e
|
||||
echo "Updating this repo..."
|
||||
git pull 1>/dev/null 2>/dev/null
|
||||
|
||||
if [ ! -z $SUDO_USER ]; then
|
||||
username=$SUDO_USER
|
||||
else
|
||||
username=$USER
|
||||
fi
|
||||
|
||||
# handle users serial shit
|
||||
## self
|
||||
echo "Giving $username the right permissions..."
|
||||
sudo usermod -aG dialout $username
|
||||
## service users
|
||||
echo "Giving service users the right permissions..."
|
||||
sudo usermod -aG dialout gpsd
|
||||
sudo usermod -aG dialout _chrony
|
||||
|
||||
# reconfigure to normal mode
|
||||
echo "Starting configure script..."
|
||||
# quiet level
|
||||
|
||||
Reference in New Issue
Block a user