forked from LiveCarta/LiveCartaWP
LAW-2947 WP change admin username instruction
This commit is contained in:
@@ -15,7 +15,8 @@
|
|||||||
"wpackagist-plugin/taxonomy-terms-order": "~1.5.5",
|
"wpackagist-plugin/taxonomy-terms-order": "~1.5.5",
|
||||||
"wpackagist-plugin/post-types-order": "~1.9.4",
|
"wpackagist-plugin/post-types-order": "~1.9.4",
|
||||||
"wpackagist-plugin/post-smtp": "~1.9.8",
|
"wpackagist-plugin/post-smtp": "~1.9.8",
|
||||||
"wpackagist-plugin/meta-tag-manager": "~2.1.0"
|
"wpackagist-plugin/meta-tag-manager": "~2.1.0",
|
||||||
|
"wpackagist-plugin/wps-hide-login": "~1.5.4"
|
||||||
},
|
},
|
||||||
"repositories": [
|
"repositories": [
|
||||||
{
|
{
|
||||||
|
|||||||
14
devops/change_admin_username.txt
Normal file
14
devops/change_admin_username.txt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
UPDATE `WordPress`.`wp_users` SET `user_login` = 'cartaadmin2019', `user_nicename` = 'cartaadmin2019', `display_name` = 'cartaadmin2019' WHERE (`ID` = '1');
|
||||||
|
|
||||||
|
----------------------------------------------------------------------------------------------------------------------
|
||||||
|
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
|
||||||
|
chmod +x wp-cli.phar
|
||||||
|
sudo mv wp-cli.phar /usr/local/bin/wp
|
||||||
|
|
||||||
|
wp super-admin add cartaadmin2019 --allow-root --path=`/var/www/WordPress/htdocs/index.php`
|
||||||
|
wp super-admin remove admin --allow-root
|
||||||
|
wp super-admin list --allow-root
|
||||||
|
----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Your login page is now here: http://livecarta.loc/login_4f8cb66f7d92/. Bookmark this page!
|
||||||
@@ -8,3 +8,4 @@
|
|||||||
8 chown -R jenkins:jenkins /var/www/WordPress
|
8 chown -R jenkins:jenkins /var/www/WordPress
|
||||||
9 chmod -R 664 /var/www/WordPress
|
9 chmod -R 664 /var/www/WordPress
|
||||||
10 Run Jenkins job to update all files from repository
|
10 Run Jenkins job to update all files from repository
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user