Last active
January 8, 2017 01:38
-
-
Save denniskupec/ec952d84ac60394b92868edd1367ef93 to your computer and use it in GitHub Desktop.
build script for istat server for linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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