We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8891fc0 + 1b88f43 commit 44d88a0Copy full SHA for 44d88a0
makeservices/makemysql
@@ -3,4 +3,9 @@ if [[ "$(hostname)" != "tsunami" && "$(hostname)" != "dev-tsunami" ]]; then
3
echo -e '\033[1;31mYou must run this command on tsunami.\033[0m'
4
exit 1
5
fi
6
-sudo -u mysql /opt/share/utils/makeservices/makemysql-real
+
7
+PASS=$(sudo -u mysql /opt/share/utils/makeservices/makemysql-real | tee /dev/tty | tail -n 1 | grep -Po '(?<=: )([0-9a-zA-Z]){24,}$')
8
9
+echo 'Changing WordPress database password'
10
+cd ~/public_html/
11
+wp config set DB_PASSWORD "$PASS" > /dev/null
0 commit comments