fix(): generate same user and group
This commit is contained in:
parent
55c55d0941
commit
5aa66a6926
1 changed files with 5 additions and 2 deletions
|
@ -1,15 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
addgroup \
|
||||
-S \
|
||||
$FTP_USER
|
||||
|
||||
adduser \
|
||||
-D \
|
||||
-G ftp \
|
||||
-G $FTP_USER \
|
||||
-h /home/$FTP_USER \
|
||||
-s /bin/false \
|
||||
$FTP_USER
|
||||
|
||||
mkdir -p /home/$FTP_USER
|
||||
chown -R $FTP_USER:ftp /home/$FTP_USER
|
||||
chown -R $FTP_USER:$FTP_USER /home/$FTP_USER
|
||||
echo "$FTP_USER:$FTP_PASS" | /usr/sbin/chpasswd
|
||||
|
||||
exec "$@"
|
||||
|
|
Loading…
Reference in a new issue