Update ghost.json and clean ghost-install.sh

This commit is contained in:
fabrice1236 2025-01-09 18:19:40 +01:00
parent d402d4a635
commit 4d2292a0e4
2 changed files with 12 additions and 5 deletions

View File

@ -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

View File

@ -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": []
}
"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"
}
]
}