From f69c7259441bc19e2437ffde84f6c5b9595db290 Mon Sep 17 00:00:00 2001 From: fabrice1236 Date: Mon, 6 Jan 2025 20:48:48 +0100 Subject: [PATCH] Update MySQL configuration in installation script to use password for flushing privileges --- install/ghost-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/ghost-install.sh b/install/ghost-install.sh index 8f72e70f..01c1d92e 100644 --- a/install/ghost-install.sh +++ b/install/ghost-install.sh @@ -32,9 +32,13 @@ $STD ufw allow 'Nginx Full' # Configure MySQL msg_info "Configuring MySQL" $STD mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY 'ghost';" -$STD mysql -u root -e "FLUSH PRIVILEGES;" +$STD mysql -u root -p'ghost' -e "FLUSH PRIVILEGES;" msg_ok "Configured MySQL" + +Rules updated (v6) + + # Set up Node.js Repository msg_info "Setting up Node.js Repository" mkdir -p /etc/apt/keyrings