Check that ghost cli gets installed

This commit is contained in:
Bob Mottram 2018-01-08 12:50:13 +00:00
parent ce85662f90
commit c1ed8a4747
1 changed files with 6 additions and 0 deletions

View File

@ -319,6 +319,8 @@ function remove_ghost {
rm /etc/systemd/system/ghost.service rm /etc/systemd/system/ghost.service
systemctl daemon-reload systemctl daemon-reload
npm uninstall -g ghost-cli
function_check remove_nodejs function_check remove_nodejs
remove_nodejs ghost remove_nodejs ghost
@ -371,6 +373,10 @@ function install_ghost {
# now install ghost itself # now install ghost itself
npm install -g ghost-cli@1.4.1 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}) GHOST_ONION_HOSTNAME=$(add_onion_service ghost 80 ${GHOST_ONION_PORT})