#!/bin/sh BASEDIR=$(dirname $0) cpwd=$PWD echo $BASEDIR cd $BASEDIR sudo -u node gem install fluentd --no-doc sudo -u node gem install fluent-plugin-mongo sudo -u node gem install oj sudo -u node gem install json sudo -u node gem install async-http sudo -u node gem install ext_monitor sudo -u node gem install gem sources --clear-all cp fluent.conf /fluentd/etc/