Browse Source

Check that ghost cli gets installed

Bob Mottram 7 years ago
parent
commit
c1ed8a4747
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/freedombone-app-ghost

+ 6
- 0
src/freedombone-app-ghost View File

319
     rm /etc/systemd/system/ghost.service
319
     rm /etc/systemd/system/ghost.service
320
     systemctl daemon-reload
320
     systemctl daemon-reload
321
 
321
 
322
+    npm uninstall -g ghost-cli
323
+
322
     function_check remove_nodejs
324
     function_check remove_nodejs
323
     remove_nodejs ghost
325
     remove_nodejs ghost
324
 
326
 
371
 
373
 
372
     # now install ghost itself
374
     # now install ghost itself
373
     npm install -g ghost-cli@1.4.1
375
     npm install -g ghost-cli@1.4.1
376
+    if [ ! -f /usr/local/bin/ghost ]; then
377
+        echo $'ghost was not installed'
378
+        exit 738539
379
+    fi
374
 
380
 
375
     GHOST_ONION_HOSTNAME=$(add_onion_service ghost 80 ${GHOST_ONION_PORT})
381
     GHOST_ONION_HOSTNAME=$(add_onion_service ghost 80 ${GHOST_ONION_PORT})
376
 
382