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