We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 863d168 commit cb62a8eCopy full SHA for cb62a8e
devops/scripts/create-sycl-user.sh
@@ -13,8 +13,8 @@ USER_ID=1001
13
groupadd -g $USER_ID $USER_NAME && useradd $USER_NAME -u $USER_ID -g $USER_ID -m -s /bin/bash
14
# Add user to video/irc groups so that it can access GPU
15
usermod -aG video $USER_NAME
16
-# Not all OS have irc group
17
-if grep -qi 'ubuntu' /etc/os-release; then
+# check if the irc group exists
+if grep -q '^irc:' /etc/group; then
18
usermod -aG irc $USER_NAME
19
fi
20
0 commit comments