Skip to content

Commit 3051720

Browse files
authored
Fix user in ghost-cli install command (#1408)
1 parent 1932f5e commit 3051720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/ghost-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ echo "ghost-user ALL=(ALL) NOPASSWD:ALL" | tee /etc/sudoers.d/ghost-user
6565
mkdir -p /var/www/ghost
6666
chown -R ghost-user:ghost-user /var/www/ghost
6767
chmod 775 /var/www/ghost
68-
sudo -u ghost-user -H sh -c "cd /var/www/ghost && ghost install --db=mysql --dbhost=localhost --dbuser=root --dbpass=$DB_PASS --dbname=ghost --url=http://localhost:2368 --no-prompt --no-setup-nginx --no-setup-ssl --no-setup-mysql --enable --start --ip 0.0.0.0"
68+
sudo -u ghost-user -H sh -c "cd /var/www/ghost && ghost install --db=mysql --dbhost=localhost --dbuser=$DB_USER --dbpass=$DB_PASS --dbname=ghost --url=http://localhost:2368 --no-prompt --no-setup-nginx --no-setup-ssl --no-setup-mysql --enable --start --ip 0.0.0.0"
6969
rm /etc/sudoers.d/ghost-user
7070
msg_ok "Creating Service"
7171

0 commit comments

Comments
 (0)