Skip to content

Instantly share code, notes, and snippets.

@denniskupec
Last active January 8, 2017 01:38
Show Gist options
  • Save denniskupec/ec952d84ac60394b92868edd1367ef93 to your computer and use it in GitHub Desktop.
Save denniskupec/ec952d84ac60394b92868edd1367ef93 to your computer and use it in GitHub Desktop.
build script for istat server for linux
#!/usr/bin/env bash
set -e
CODE=$RANDOM
apt update
apt -y install build-essential autoconf libxml2-dev
wget https://github.com/tiwilliam/istatd/archive/r0.5.8.tar.gz
tar zx r0.5.8.tar.gz
cd istatd-*
./autogen
./configure --sysconfdir=/etc --prefix=/usr/local
make
make install
useradd istat
mkdir -p /var/{run,cache}/istat
chown istat:istat /var/{run,cache}/istat
echo "server_code $CODE" > /etc/istat.conf
echo ""
echo "Server Code: $CODE"
/usr/local/bin/istatd -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment