Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
centmin.sh menu option 22 wordpress allow from email override
Update adds support to override the default email from address used by centmin.sh menu option 22's wp-cli installer and cronjob auto updater. By default wp-cli email notifications's email from address is the same as your wordpress administration defined email address. To override the from email address in emails sent via centmin.sh menu option 22 wp-cli initial install and cronjob wordpress auto updater so that it differs from wp administration email address (to email address), you can do it on a per domain vhost level or via global override following below instructions. On per domain vhost level, before running centmin.sh menu option 22 wordpress install, you would create directory /usr/local/nginx/conf/wpincludes/$vhostname and file at /usr/local/nginx/conf/wpincludes/$vhostname/emailfrom.ini where $vhostname = your intended wordpress domain name (without www. prefix) i.e. domain.com would have directory created at /usr/local/nginx/conf/wpincludes/domain.com and within the /usr/local/nginx/conf/wpincludes/domain.com/emailfrom.ini file assign to the variable SETWPADMINEMAIL_FROM your intended from email address that wp-cli update email notifications are sent from. SETWPADMINEMAIL_FROM=yourcustom-from-emailaddress On a global level so all subsequent centmin.sh menu option 22 created wordpress installs use the same from email address, set in persistent config file /etc/centminmod/custom_config.inc the variable SETWPADMINEMAIL_FROM your intended from email address that wp-cli update email notifications are sent from. SETWPADMINEMAIL_FROM=yourcustom-from-emailaddress Per domain vhost level takes higher priority if both per domain vhost level and global level are set. So you can have a global from email address for most wordpress installs and a per vhost level one for a specific domain vhost if you want
- Loading branch information