Sha256: 8928a91c948061df22061ac56b48130af8f669c77d2cf0771e61b94fccbd996b

Contents?: true

Size: 857 Bytes

Versions: 9

Compression:

Stored size: 857 Bytes

Contents

if sunzi.to_be_done "install analysers"; then
  echo "deb http://deb.goaccess.io/ $(lsb_release -cs) main" | tee -a /etc/apt/sources.list.d/goaccess.list
  wget -O - http://deb.goaccess.io/gnugpg.key | apt-key add -

  sunzi.mute "apt-get update"

  sunzi.install "goaccess"
  sunzi.install "iotop"
  sunzi.install "iftop"
  sunzi.install "ifstat"
  sunzi.install "nethogs"
  sunzi.install "sysstat"

  pip install ngxtop

  sed -i 's/#time-format %H:%M:%S/time-format %H:%M:%S/' /etc/goaccess.conf
  sed -i 's|#date-format %d/%b/%Y|date-format %d/%b/%Y|' /etc/goaccess.conf
  sed -i 's/#log-format %h %\^\[%d:%t %\^\] "%r" %s %b "%R" "%u"/log-format %h - %\^ \[%d:%t %\^\] "%r" %s %b "%R" "%u" %T %\^/' /etc/goaccess.conf

  sed -i 's/ENABLED="false"/ENABLED="true"/' /etc/default/sysstat
  /etc/init.d/sysstat restart

  sunzi.done "install analysers"
fi

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
sunzi-rails-0.2.21 lib/templates/create/recipes/analysers.sh
sunzi-rails-0.2.20 lib/templates/create/recipes/analysers.sh
sunzi-rails-0.3.0 lib/templates/create/recipes/analysers.sh
o2webappizer-0.2.6 templates/config/sunzi/recipes/analysers.sh
o2webappizer-0.2.5 templates/config/sunzi/recipes/analysers.sh
o2webappizer-0.2.4 templates/config/sunzi/recipes/analysers.sh
o2webappizer-0.2.3 templates/config/sunzi/recipes/analysers.sh
o2webappizer-0.2.2 templates/config/sunzi/recipes/analysers.sh
o2webappizer-0.2.1 templates/config/sunzi/recipes/analysers.sh