Some extra packages for ghost

This commit is contained in:
Bob Mottram 2017-07-28 11:42:21 +01:00
parent 01e5748db7
commit 74cb0c0493
1 changed files with 7 additions and 1 deletions

View File

@ -260,8 +260,8 @@ function restore_local_ghost {
MARIADB_PASSWORD= MARIADB_PASSWORD=
# install any missing packages # install any missing packages
cd /var/www/${GHOST_DOMAIN_NAME}/htdocs
if [ ! -d /var/www/${GHOST_DOMAIN_NAME}/htdocs/node_modules/intl ]; then if [ ! -d /var/www/${GHOST_DOMAIN_NAME}/htdocs/node_modules/intl ]; then
cd /var/www/${GHOST_DOMAIN_NAME}/htdocs
npm install passport-http-bearer@1.0.1 npm install passport-http-bearer@1.0.1
npm install amperize@0.3.4 npm install amperize@0.3.4
npm install bcryptjs@2.4.3 npm install bcryptjs@2.4.3
@ -275,6 +275,10 @@ function restore_local_ghost {
npm install superagent@3.5.2 npm install superagent@3.5.2
npm install mysql@2.1.1 npm install mysql@2.1.1
fi fi
if [ ! -d /var/www/${GHOST_DOMAIN_NAME}/htdocs/node_modules/debug ]; then
npm install debug@2.6.8
npm install nconf@0.8.4
fi
systemctl start ghost systemctl start ghost
restart_site restart_site
@ -554,6 +558,8 @@ function install_ghost {
npm install superagent@3.5.2 npm install superagent@3.5.2
npm install mysql@2.1.1 npm install mysql@2.1.1
npm install mariasql@0.2.6 npm install mariasql@0.2.6
npm install debug@2.6.8
npm install nconf@0.8.4
npm install --production npm install --production