Skip to content

Commit

Permalink
Fix sysconfdir (#43)
Browse files Browse the repository at this point in the history
Co-authored-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max and crazy-max authored Mar 13, 2022
1 parent 63df294 commit bddac9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ARG TARGETPLATFORM
RUN xx-apk --no-cache --no-scripts add g++ gettext-dev gnutls-dev libidn2-dev libgsasl-dev libsecret-dev
RUN <<EOT
set -ex
CXX=xx-clang++ ./configure --host=$(xx-clang --print-target-triple) --prefix=/usr --with-libgsasl
CXX=xx-clang++ ./configure --host=$(xx-clang --print-target-triple) --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-libgsasl
make -j$(nproc)
make install
xx-verify /usr/bin/msmtp
Expand Down
4 changes: 0 additions & 4 deletions rootfs/etc/cont-init.d/02-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,3 @@ if [ -n "$SMTP_DSN_NOTIFY" ]; then echo "dsn_notify $SMTP_DSN_NOTI
if [ -n "$SMTP_DSN_RETURN" ]; then echo "dsn_return $SMTP_DSN_RETURN" >> /etc/msmtprc; fi
unset SMTP_USER
unset SMTP_PASSWORD

echo "Fix configuration permissions..."
chown root:msmtpd /etc/msmtprc
chmod 640 /etc/msmtprc

0 comments on commit bddac9a

Please sign in to comment.