From a72e1d3fd4f09ae7ad738aac00655d20dd765943 Mon Sep 17 00:00:00 2001 From: fabrice1236 Date: Thu, 9 Jan 2025 18:22:36 +0100 Subject: [PATCH] Update ghost installation script 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 a6fd2aa9..bdd638ea 100644 --- a/install/ghost-install.sh +++ b/install/ghost-install.sh @@ -77,7 +77,7 @@ msg_info "Setting up Ghost" mkdir -p /var/www/ghost chown -R ghost-user:ghost-user /var/www/ghost chmod 775 /var/www/ghost -sudo -u ghost-user -H sh -c "cd /var/www/ghost && ghost install --db=mysql --dbhost=localhost --dbuser=root --dbpass=ghost --dbname=ghost --url=http://localhost:2368 --no-prompt --no-setup-nginx --no-setup-ssl --no-setup-mysql --enable --start --ip 0.0.0.0" +sudo -u ghost-user -H sh -c "cd /var/www/ghost && ghost install --db=mysql --dbhost=localhost --dbuser=root --dbpass=$DBPASS --dbname=ghost --url=http://localhost:2368 --no-prompt --no-setup-nginx --no-setup-ssl --no-setup-mysql --enable --start --ip 0.0.0.0" rm /etc/sudoers.d/ghost-user #Remove ghost-user for sudoers after setup (not required anymore) msg_ok "Ghost setup completed"