From ddcccf90f4bb79229382a9656b52cd7096cc28b3 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Fri, 27 Dec 2013 16:01:29 +0530 Subject: [PATCH] Use git config email as wordpress wp-admin email address --- etc/easyengine/ee.conf | 2 +- usr/local/sbin/easyengine | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/easyengine/ee.conf b/etc/easyengine/ee.conf index 4e6d0361..d9b55bea 100644 --- a/etc/easyengine/ee.conf +++ b/etc/easyengine/ee.conf @@ -24,7 +24,7 @@ wpadminuser = # WordPress Default Password: Random Password wpadminpass = -# WordPress Default Email: `whoami`@`hostname -f` +# WordPress Default Email: `git config user.email` wpadminemail = # auto-install following plugins on new wordpress sites. Default is nginx-helper. diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 5d49bbc2..77e6a5fe 100755 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -850,11 +850,11 @@ EEWPDBSETUP() WPADMINPASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 15 | head -n1) fi - # WordPress Default Email: `whoami`@`hostname -f` + # WordPress Default Email: `git config user.email` WPADMINEMAIL=$(grep wpadminemail /etc/easyengine/ee.conf | awk '{print($3)}') if [[ $WPADMINEMAIL = "" ]] then - WPADMINEMAIL=`whoami`@`hostname -f` + WPADMINEMAIL=`git config user.email` fi # Create WordPress Tables