Forum archive
Updating Ghost not working - bash: pm2: command not found
Hi,
I just installed ghost via proxmox container and noticed a Critical security update available notice at the top of my page.
I'm trying to update my version of Ghost but get the following error:
root@ghost /opt/ghost# su -c "pm2 stop ghost" node
bash: pm2: command not found
Here is my turnkey-version:
root@ghost /opt/ghost# turnkey-version
turnkey-ghost-16.1-buster-amd64
I'm trying to follow the Supervised Manual Ghost Update instructions here.
DIR=/opt/ghost cd $DIR su -c "pm2 stop ghost" node rm -rf core curl -LOk https://ghost.org/zip/ghost-latest.zip unzip ghost-latest.zip -d ghost-temp cd ghost-temp cp -R core $DIR cp index.js *.json *.md $DIR # optional step - update default theme cp -R content/themes/casper $DIR/content/themes cd .. rm -r ghost-temp rm ghost-latest.zip chown -R node:node $DIR su -c "npm install --production" node su -c "pm2 start ghost" node
Any ideas how to update this version of ghost?
Glad to hear that works.
Re your question/suggestion - no, 00775 is legitimate, albeit possibly unrequired in this instance (but won't do any harm). The leading double zero will clear any sticky bit that has been set. See the relevant gnu coreutils docs for further info.