Update init
This commit is contained in:
6
init
6
init
@@ -42,6 +42,12 @@ sudo systemctl enable --now mariadb
|
||||
# Secure MariaDB
|
||||
printf "$MYSQL_ROOT_PASS\nn\nY\n$MYSQL_NEW_PASS\n$MYSQL_NEW_PASS\nY\nY\nY\nY\n" | sudo mariadb-secure-installation
|
||||
|
||||
sudo mysql <<EOF
|
||||
CREATE DATABASE wordpress;
|
||||
CREATE USER 'wordpress'@'localhost' IDENTIFIED BY '$MYSQL_NEW_PASS';
|
||||
GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'localhost';
|
||||
EOF
|
||||
|
||||
# WordPress
|
||||
curl https://wordpress.org/latest.zip -o /tmp/wordpress.zip
|
||||
printf "A\n" | sudo unzip -d /var/www/html /tmp/wordpress.zip
|
||||
|
||||
Reference in New Issue
Block a user