no need for dupe regex set

This commit is contained in:
thelamer
2019-10-19 14:28:18 -07:00
committed by Ryan Kuba
parent f95217ed6d
commit 42d5564cea

View File

@@ -11,7 +11,7 @@ do
if [ ! "${VIDEO_GID}" == '0' ]; then
VIDEO_NAME=$(getent group "${VIDEO_GID}" | awk -F: '{print $1}')
if [ -z "${VIDEO_NAME}" ]; then
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-za-z0-9' | head -c8)"
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-z0-9' | head -c8)"
groupadd "$VIDEO_NAME"
groupmod -g "$VIDEO_GID" "$VIDEO_NAME"
fi