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:
parent
03f6d4021b
commit
3d49fcaabd
33 changed files with 128 additions and 68 deletions
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue