fix(): generate same user and group

This commit is contained in:
Gareth Flowers 2020-09-04 22:50:49 +01:00
parent 55c55d0941
commit 5aa66a6926

View file

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