From f0d179e7c8db5b368d27e38a9ed859a70d47e4f8 Mon Sep 17 00:00:00 2001 From: fabrice1236 Date: Thu, 9 Jan 2025 18:26:20 +0100 Subject: [PATCH] Fix MySQL flush privileges command to use dynamic database password --- install/ghost-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/ghost-install.sh b/install/ghost-install.sh index bdd638ea..6f34e02d 100644 --- a/install/ghost-install.sh +++ b/install/ghost-install.sh @@ -33,7 +33,7 @@ $STD ufw allow 'Nginx Full' msg_info "Configuring MySQL" DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) $STD mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY '$DB_PASS';" -$STD mysql -u root -p'ghost' -e "FLUSH PRIVILEGES;" +$STD mysql -u root -p"$DB_PASS" -e "FLUSH PRIVILEGES;" { echo "MySQL-Credentials"