From 4204081563e814dbdd96168b7961c4b205ae4767 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Sun, 29 Aug 2021 18:11:41 -0500 Subject: [PATCH] Make tons of fixes to server setup --- server/deploy.sh | 29 ++++--- server/root.Makefile | 28 +++++++ server/serversetup.sh | 147 +++++++++++++++++++++++------------ src/config/config.go.example | 28 +++---- 4 files changed, 159 insertions(+), 73 deletions(-) create mode 100644 server/root.Makefile diff --git a/server/deploy.sh b/server/deploy.sh index 82136c4..7a14074 100755 --- a/server/deploy.sh +++ b/server/deploy.sh @@ -1,21 +1,30 @@ #!/bin/bash -# This script should be called with the name of the branch to deploy. ($1 will -# be the branch name.) +set -eo pipefail -set -euo pipefail +branch=$1 +if [ -z "$branch" ]; then + echo "Type the name of the branch you would like to deploy: " + read branch +fi -sudo -u hmn bash -s <