Skip to content

Commit

Permalink
Abfrage für 2nd User
Browse files Browse the repository at this point in the history
  • Loading branch information
stkjj committed Oct 18, 2019
1 parent a9510be commit debfd20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wp-install
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ echo -n "shortname of your project (-> will result in subdomain, db-table, db-pr
read siteurl
echo -n "fullname of your project (-> will result in title of your WP-Install): "
read sitename
echo -n "2nd admin needed? (y/n): "
read ADMIN
echo -n "continue with installation? (y/n): "
read run
if [ "$run" == n ] ; then
Expand All @@ -37,8 +39,11 @@ wp config create --dbname=${user}_${siteurl} --dbuser=$user --dbpass=$dbpass --d
echo " • wp-config.php created "
wp core install --url=${siteurl}.${domain} --title="$sitename" --admin_user=$wpadmin --admin_email=$wpadminmail --skip-plugins --quiet
echo " • WordPress is up and running "
if ["$ADMIN" == y] ; then
wp user create $2ndadmin $secondadminmail --role=administrator --porcelain
echo " • 2nd Admin User created "
else
exit
echo "============================================"
echo " All the magic is done! "
echo "============================================"
Expand Down

0 comments on commit debfd20

Please sign in to comment.