Browse Source

Use git config email as wordpress wp-admin email address

old-stable
Mitesh Shah 11 years ago
parent
commit
ddcccf90f4
  1. 2
      etc/easyengine/ee.conf
  2. 4
      usr/local/sbin/easyengine

2
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.

4
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

Loading…
Cancel
Save