Update init
This commit is contained in:
6
init
6
init
@@ -43,9 +43,9 @@ sudo systemctl enable --now mariadb
|
|||||||
printf "$DB_PASSWORD\nn\nY\n$DB_PASSWORD\n$DB_PASSWORD\nY\nY\nY\nY\n" | sudo mariadb-secure-installation
|
printf "$DB_PASSWORD\nn\nY\n$DB_PASSWORD\n$DB_PASSWORD\nY\nY\nY\nY\n" | sudo mariadb-secure-installation
|
||||||
|
|
||||||
sudo mysql <<EOF
|
sudo mysql <<EOF
|
||||||
CREATE DATABASE wordpress;
|
CREATE DATABASE $DB_NAME;
|
||||||
CREATE USER 'wordpress'@'localhost' IDENTIFIED BY '$DB_PASSWORD';
|
CREATE USER '$DB_NAME'@'localhost' IDENTIFIED BY '$DB_PASSWORD';
|
||||||
GRANT ALL PRIVILEGES ON wordpress.* TO '$DB_USER'@'localhost';
|
GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'localhost';
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# WordPress
|
# WordPress
|
||||||
|
|||||||
Reference in New Issue
Block a user