From a5517ecc826b2fd26d34c88d886983b6bf638343 Mon Sep 17 00:00:00 2001 From: Junaid Ali Rasheed Date: Wed, 25 Apr 2018 22:39:10 +0100 Subject: [PATCH 1/2] Create a script to setup files needed by Keter + Useful if you want to use your own Keter binary on a server --- setup-server.sh | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 setup-server.sh diff --git a/setup-server.sh b/setup-server.sh new file mode 100644 index 0000000..9c4f90e --- /dev/null +++ b/setup-server.sh @@ -0,0 +1,59 @@ +#!/bin/bash +set -o errexit -o nounset -o xtrace + +# Quick start: +# wget -O - https://raw.github.com/snoyberg/keter/master/setup-keter-server.sh | bash -ex + +sudo mkdir -p /opt/keter/bin +sudo cp ~/.local/bin/keter /opt/keter/bin + +sudo mkdir -p /opt/keter/etc +cat > /tmp/keter-config.yaml < /tmp/keter.service < Date: Thu, 21 Jun 2018 19:37:31 +0100 Subject: [PATCH 2/2] Call setup-server.sh in the install script --- setup-keter.sh | 55 ++------------------------------------------------ 1 file changed, 2 insertions(+), 53 deletions(-) diff --git a/setup-keter.sh b/setup-keter.sh index 0045335..7aae99c 100755 --- a/setup-keter.sh +++ b/setup-keter.sh @@ -14,56 +14,5 @@ stack update stack setup stack install keter -sudo mkdir -p /opt/keter/bin -sudo cp ~/.local/bin/keter /opt/keter/bin - -sudo mkdir -p /opt/keter/etc -cat > /tmp/keter-config.yaml < /tmp/keter.service <