mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-01 19:48:47 +02:00
Try adding node to group root
https://github.com/alexbelgium/hassio-addons/issues/1450
This commit is contained in:
@@ -17,7 +17,7 @@ chown -R "$USER:$USER" "/home/$USER/.signalk"
|
|||||||
# Define permissions for /dev/ttyUSB
|
# Define permissions for /dev/ttyUSB
|
||||||
for device in /dev/ttyUSB /dev/ttyUSB0 /dev/ttyUSB1; do
|
for device in /dev/ttyUSB /dev/ttyUSB0 /dev/ttyUSB1; do
|
||||||
if [ -e "$device" ]; then
|
if [ -e "$device" ]; then
|
||||||
usermod -a -G "$(stat -c "%G" "$device")" $USER
|
sudo usermod -a -G root node || true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user