From 78d4f972d16650d65e8560b63a2005b09b2c4062 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Fri, 14 Oct 2016 00:24:51 +0200 Subject: [PATCH] set umask --- Dockerfile | 6 +++--- rootfs/etc/confd/templates/proftpd.conf.tmpl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 017c209..9cdeb62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,13 +7,13 @@ RUN adduser -h /var/lib/proftp -u 2222 -D -G proftp proftp ADD /rootfs / -RUN apk add --no-cache openssl openldap tar gcc make g++ openldap-dev +RUN apk add --no-cache openssl openldap tar gcc make g++ openldap-dev file RUN mkdir /tmp/proftpd RUN wget -qO- https://github.com/proftpd/proftpd/archive/$PROFTP_VERSION.tar.gz | tar -xz -C /tmp/proftpd --strip 1 WORKDIR /tmp/proftpd -RUN ./configure --with-modules=mod_ldap +RUN ./configure --with-modules=mod_ldap --with-modules=mod_tls RUN patch -p1 -i /musl_mempcpy.patch RUN make && make install @@ -21,6 +21,6 @@ RUN rm -r /tmp/proftpd RUN rm /musl_mempcpy.patch WORKDIR / -RUN apk del tar gcc make g++ openldap-dev +RUN apk del tar gcc make g++ openldap-dev file EXPOSE 21 diff --git a/rootfs/etc/confd/templates/proftpd.conf.tmpl b/rootfs/etc/confd/templates/proftpd.conf.tmpl index 1e9a0dd..8fd5867 100644 --- a/rootfs/etc/confd/templates/proftpd.conf.tmpl +++ b/rootfs/etc/confd/templates/proftpd.conf.tmpl @@ -3,7 +3,7 @@ ServerType standalone DefaultServer on Port 21 UseIPv6 off -Umask 022 +Umask 006 007 MaxInstances 30 User proftp Group proftp