fix(): adds user to default ftp group

This commit is contained in:
Gareth Flowers 2020-09-04 17:38:57 +01:00
parent 79ad20ea72
commit 604ee30745

View file

@ -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 "$@"