Update v-add-web-domain-ftp

Modification of the useradd request to find the right user group --> For the group it is : (id -g $user)
This commit is contained in:
CLSII 2019-06-27 21:34:20 +02:00 committed by GitHub
commit 6d6e3f3723
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ fi
/usr/sbin/useradd $ftp_user \
-s $shell \
-o -u $(id -u $user) \
-g $(id -u $user) \
-g $(id -g $user) \
-M -d "$ftp_path_a" > /dev/null 2>&1
# Set ftp user password