imap-download: usermod/groupmod fixes

This commit is contained in:
Starbeamrainbowlabs 2021-05-26 00:38:36 +01:00
parent ec583792d3
commit 4c8d6ea9ac
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -7,7 +7,9 @@ RUN install_packages ca-certificates fetchmail procmail inotify-tools mpack
RUN mkdir /srv/home \
&& ln -s /mnt/fetchmailrc /srv/home/.fetchmailrc \
&& mkdir /tmp/maildir \
&& useradd --system --home=/srv/home --uid=10000 --gid=10000 fetchmail
&& groupmod -g 10000 fetchmail \
&& usermod --uid 10000 --gid 10000 --home=/srv/home --uid=10000 --gi=10000 fetchmail \
&& chown fetchmail:fetchmail /srv/home
ENV HOME /srv/home