Check that ghost cli gets installed
This commit is contained in:
parent
ce85662f90
commit
c1ed8a4747
|
@ -319,6 +319,8 @@ function remove_ghost {
|
|||
rm /etc/systemd/system/ghost.service
|
||||
systemctl daemon-reload
|
||||
|
||||
npm uninstall -g ghost-cli
|
||||
|
||||
function_check remove_nodejs
|
||||
remove_nodejs ghost
|
||||
|
||||
|
@ -371,6 +373,10 @@ function install_ghost {
|
|||
|
||||
# now install ghost itself
|
||||
npm install -g ghost-cli@1.4.1
|
||||
if [ ! -f /usr/local/bin/ghost ]; then
|
||||
echo $'ghost was not installed'
|
||||
exit 738539
|
||||
fi
|
||||
|
||||
GHOST_ONION_HOSTNAME=$(add_onion_service ghost 80 ${GHOST_ONION_PORT})
|
||||
|
||||
|
|
Loading…
Reference in New Issue