mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Add ghost-user creation and modify Ghost installation to run as new user
This commit is contained in:
parent
26cf31b716
commit
0ead0c528f
@ -54,13 +54,18 @@ msg_info "Installing Ghost CLI"
|
|||||||
$STD npm install ghost-cli@latest -g
|
$STD npm install ghost-cli@latest -g
|
||||||
msg_ok "Installed Ghost CLI"
|
msg_ok "Installed Ghost CLI"
|
||||||
|
|
||||||
|
|
||||||
|
# Create a new user for Ghost
|
||||||
|
adduser ghost-user
|
||||||
|
usermod -aG sudo ghost-user
|
||||||
|
|
||||||
# Set up Ghost
|
# Set up Ghost
|
||||||
msg_info "Setting up Ghost"
|
msg_info "Setting up Ghost"
|
||||||
mkdir -p /var/www/ghost
|
mkdir -p /var/www/ghost
|
||||||
chown -R $USER:$USER /var/www/ghost
|
chown -R $USER:$USER /var/www/ghost
|
||||||
chmod 775 /var/www/ghost
|
chmod 775 /var/www/ghost
|
||||||
cd /var/www/ghost
|
cd /var/www/ghost
|
||||||
ghost install --db=mysql --dbhost=localhost --dbuser=root --dbpass=ghost --dbname=ghost --no-prompt --no-setup-linux-user --no-setup-nginx --no-setup-ssl --no-setup-systemd
|
$STD sudo -u ghost-user ghost install --db=mysql --dbhost=localhost --dbuser=root --dbpass=ghost --dbname=ghost --no-prompt --no-setup-linux-user --no-setup-nginx --no-setup-ssl --no-setup-systemd
|
||||||
msg_ok "Ghost setup completed"
|
msg_ok "Ghost setup completed"
|
||||||
|
|
||||||
# Creating Service (if needed)
|
# Creating Service (if needed)
|
||||||
|
Loading…
Reference in New Issue
Block a user