diff --git a/setup-keter.sh b/setup-keter.sh index a994e2b..37bfdaa 100755 --- a/setup-keter.sh +++ b/setup-keter.sh @@ -4,13 +4,18 @@ set -o errexit -o nounset -o xtrace # Quick start: # wget -O - https://raw.github.com/snoyberg/keter/master/setup-keter.sh | bash -ex -sudo apt-get update -sudo apt-get install postgresql haskell-platform -y +sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442 +echo "deb http://download.fpcomplete.com/ubuntu `lsb_release -sc` main"|sudo tee /etc/apt/sources.list.d/fpco.list + +sudo apt-get update +sudo apt-get -y install postgresql stack zlib1g-dev + +stack update +stack setup +stack install keter -j1 -cabal update -cabal install keter --force-reinstalls sudo mkdir -p /opt/keter/bin -sudo cp ~/.cabal/bin/keter /opt/keter/bin +sudo cp ~/.local/bin/keter /opt/keter/bin sudo mkdir -p /opt/keter/etc cat > /tmp/keter-config.yaml <