From 4d2292a0e44473e41b10001568801b990377d75e Mon Sep 17 00:00:00 2001 From: fabrice1236 Date: Thu, 9 Jan 2025 18:19:40 +0100 Subject: [PATCH] Update ghost.json and clean ghost-install.sh --- install/ghost-install.sh | 4 ++-- json/ghost.json | 13 ++++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/install/ghost-install.sh b/install/ghost-install.sh index a9d1b99c..a6fd2aa9 100644 --- a/install/ghost-install.sh +++ b/install/ghost-install.sh @@ -68,10 +68,10 @@ msg_info "Creating ghost-user" $STD adduser --disabled-password --gecos "Ghost user" ghost-user $STD usermod -aG sudo ghost-user echo "ghost-user ALL=(ALL) NOPASSWD:ALL" | tee /etc/sudoers.d/ghost-user - -# # echo "ghost-user ALL=(ALL) NOPASSWD:/bin/chown -R ghost:ghost /var/www/ghost/*/content, /bin/mv /tmp/*/ghost_*.service /lib/systemd/system/ghost_*.service, /bin/systemctl daemon-reload, /bin/systemctl is-active ghost_*, /bin/systemctl start ghost_*, /bin/systemctl is-enabled ghost_*, /bin/systemctl enable ghost_* --quiet" | tee /etc/sudoers.d/ghost-user msg_ok "Created ghost-user" + + # Set up Ghost msg_info "Setting up Ghost" mkdir -p /var/www/ghost diff --git a/json/ghost.json b/json/ghost.json index c0e730ba..76db9bf4 100644 --- a/json/ghost.json +++ b/json/ghost.json @@ -22,7 +22,7 @@ "ram": 1024, "hdd": 5, "os": "Ubuntu", - "version": "24.04" + "version": "22.04" } } ], @@ -30,5 +30,12 @@ "username": null, "password": null }, - "notes": [] - } \ No newline at end of file + "notes": [ + { + "text": "To run Ghost-CLI commands, first set a password for the ghost-user by running `sudo passwd ghost-user`. Then, switch to the ghost-user with `sudo -su ghost-user`.", + "type": "info" + } + ] +} + +