2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-12-28 08:05:20 +01:00

Activate msmtp just in case there's a config

This commit is contained in:
Philipp Holzer 2021-07-11 13:43:10 +02:00
parent 03f6d4021b
commit 3d49fcaabd
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
33 changed files with 128 additions and 68 deletions

View file

@ -108,10 +108,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -83,10 +83,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -108,10 +108,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -108,10 +108,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -83,10 +83,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -108,10 +108,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -108,10 +108,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -83,10 +83,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -108,10 +108,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -108,10 +108,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -83,10 +83,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -108,10 +108,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -108,10 +108,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -83,10 +83,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -108,10 +108,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi

View file

@ -82,10 +82,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -107,10 +107,6 @@ RUN set -ex; \
echo 'opcache.revalidte_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \
echo sendmail_path = "/usr/bin/msmtp -t"; \
} > /usr/local/etc/php/conf.d/sendmail.ini; \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \

View file

@ -34,5 +34,13 @@ if [ -n "${SMTP_DOMAIN+x}" ] && [ -n "${SMTP+x}" ] && [ "${SMTP}" != "localhost"
echo "aliases /etc/aliases"
} >/etc/msmtprc
# enable msmtp setup
{
echo sendmail_path = "/usr/bin/msmtp -t";
} > /usr/local/etc/php/conf.d/sendmail.ini
# reload php-config per signal
kill -USR2 1
echo "Setup finished"
fi