mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 10:55:10 +00:00
Update ghost.json and clean ghost-install.sh
This commit is contained in:
parent
d402d4a635
commit
4d2292a0e4
@ -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
|
||||
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user