Skip to content

Commit

Permalink
refactor!(php-fpm): drop support for MailHog
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed May 6, 2024
1 parent 8a35647 commit fcdad4d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion php-fpm/rootfs-php/cli/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ realpath_cache_size = "800K"
realpath_cache_ttl = "86400"
disable_functions =
sendmail_path=/bin/true
;sendmail_path = "/usr/local/bin/mhsendmail --smtp-addr='sendmailhog:1025'"

[Date]
date.timezone = "UTC"
Expand Down
1 change: 0 additions & 1 deletion php-fpm/rootfs-php/fpm/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ realpath_cache_size = "800K"
realpath_cache_ttl = "86400"
disable_functions =
sendmail_path=/bin/true
;sendmail_path = "/usr/local/bin/mhsendmail --smtp-addr='sendmailhog:1025'"

[Date]
date.timezone = "UTC"
Expand Down
2 changes: 0 additions & 2 deletions php-fpm/rootfs-php/mods-available/mailhog.ini

This file was deleted.

6 changes: 2 additions & 4 deletions php-fpm/rootfs/usr/local/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ else
phpdismod -s fpm xdebug
fi

if [ -n "${LANDO_INFO}" ] && [ 'null' != "$(echo "${LANDO_INFO}" | jq -r .mailhog)" ]; then
phpenmod mailhog
elif [ -n "${LANDO_INFO}" ] && [ 'null' != "$(echo "${LANDO_INFO}" | jq -r .mailpit)" ]; then
if [ -n "${LANDO_INFO}" ] && [ 'null' != "$(echo "${LANDO_INFO}" | jq -r .mailpit)" ]; then
phpenmod mailpit
else
phpdismod mailhog mailpit
phpdismod mailpit
fi

cleanup() {
Expand Down

0 comments on commit fcdad4d

Please sign in to comment.