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