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 baa3494 commit 177088cCopy full SHA for 177088c
root/etc/cont-init.d/50-gid-video
@@ -21,7 +21,7 @@ do
21
if [ ! "${VIDEO_GID}" == '0' ]; then
22
VIDEO_NAME=$(getent group "${VIDEO_GID}" | awk -F: '{print $1}')
23
if [ -z "${VIDEO_NAME}" ]; then
24
- VIDEO_NAME="video$(head /dev/urandom | tr -dc 0-9 | head -c4)"
+ VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c8)"
25
groupadd "$VIDEO_NAME"
26
groupmod -g "$VIDEO_GID" "$VIDEO_NAME"
27
fi
@@ -33,4 +33,4 @@ done
33
34
if [ ! -z "${FILES}" ] && [ ! -f "/groupadd" ]; then
35
usermod -a -G root abc
36
-fi
+fi
0 commit comments