disable setting sendmail_path

This commit is contained in:
Matthew Saunders Brown 2024-03-28 14:27:46 -07:00
parent 2072d867a9
commit cc52229fb3

View File

@ -69,12 +69,13 @@ if [[ -d /usr/jails/$username ]]; then
fi
# set sendmail_path in php-fpm, but only if not already set
vhost::set-phpVersion
if [[ -f /etc/php/$phpVersion/fpm/pool.d/$username.conf ]]; then
if ! /bin/grep -q "^php_admin_value\[sendmail_path\]" /etc/php/$phpVersion/fpm/pool.d/$username.conf; then
echo "php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -fwebmaster@$domain" >> /etc/php/$phpVersion/fpm/pool.d/$username.conf
fi
fi
## disabled, now relying on defaults (user@fqdn) with .forward (/home/user/.forward)
## vhost::set-phpVersion
## if [[ -f /etc/php/$phpVersion/fpm/pool.d/$username.conf ]]; then
## if ! /bin/grep -q "^php_admin_value\[sendmail_path\]" /etc/php/$phpVersion/fpm/pool.d/$username.conf; then
## echo "php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -fwebmaster@$domain" >> /etc/php/$phpVersion/fpm/pool.d/$username.conf
## fi
## fi
# create & enable apache config
/usr/local/bin/vhost-enable.sh -d $domain -m VHostHTTP