#!/bin/bash npm install pm2@latest -g npm install medimage -g cd "$(npm prefix -global)/lib/node_modules/medimage/" cp config-original/linORIGINALconfig.json config.json cp addons/configORIGINAL.json addons/config.json pm2 start npm --name "medimage-server" -- start ./medimage-server.sh; cd ~ pm2 save pm2 startup