0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Group name must begin with letters

This commit is contained in:
Adrian Dvergsdal 2016-09-03 01:02:47 +02:00
parent 9307ba0a56
commit 8bc91ed283

View file

@ -50,7 +50,7 @@ function createUser() {
if [ -n "$gid" ]; then if [ -n "$gid" ]; then
if ! $(cat /etc/group | cut -d: -f3 | grep -q "$gid"); then if ! $(cat /etc/group | cut -d: -f3 | grep -q "$gid"); then
groupadd --gid $gid $gid groupadd --gid $gid "group_$gid"
fi fi
useraddOptions="$useraddOptions --gid $gid" useraddOptions="$useraddOptions --gid $gid"