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