Skip to content

Commit a498a4c

Browse files
committed
standardize for alpine
1 parent 28db793 commit a498a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/etc/cont-init.d/50-gid-video

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ do
1818
# check if video group needs to be created
1919
VIDEO_NAME=$(getent group "${VIDEO_GID}" | awk -F: '{print $1}')
2020
if [ -z "${VIDEO_NAME}" ]; then
21-
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c8)"
21+
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-z0-9' | head -c4)"
2222
groupadd "${VIDEO_NAME}"
2323
groupmod -g "${VIDEO_GID}" "${VIDEO_NAME}"
2424
echo "**** creating video group ${VIDEO_NAME} with id ${VIDEO_GID} ****"

0 commit comments

Comments
 (0)