overleaf/server-ce/bin/install-services
2017-07-31 13:36:37 +01:00

15 lines
293 B
Bash

#! env bash
grep 'name:' config/services.js | \
sed 's/.*name: "\(.*\)",/\1/' | \
while read service
do
pushd $service &&
echo "Installing Service $service" &&
echo ' installing Node' &&
nvm install &&
nvm use &&
echo ' installing Dependencies' &&
npm install
popd
done