Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion install/installWP.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ useradd -p $(echo $userPassword | openssl passwd -1 -stdin) $userName
echo "Please enter root password for MYSQL"
mysql --user=root -p -e "create database $userName;
CREATE USER '$userName'@localhost IDENTIFIED BY '$userPassword';
GRANT ALL PRIVILEGES ON $userName . * TO '$userName'@'localhost';"
GRANT ALL PRIVILEGES ON $userName . * TO '$userName'@'localhost';
UPDATE mysql.user SET max_user_connections=50 WHERE user='$user' AND host='localhost';"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Varför används ´$user´ här istället för ´$userName´?

echo ""

# Create folders for WP. www-data in user group and correct permissions for server to run
Expand Down