Sha256: 64e7ce658e81ddc24225aec66382c6a8f8a11223649658d5d066a1e2e50a8506

Contents?: true

Size: 835 Bytes

Versions: 1

Compression:

Stored size: 835 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"

  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

1 entries across 1 versions & 1 rubygems

Version Path
o2webappizer-0.2.0 templates/config/sunzi/recipes/analysers.sh