overleaf/server-ce/bin/install-services

16 lines
299 B
Text
Raw Normal View History

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