From c0985c0bfa3e2f52b924c8970a95e5ee3efc0911 Mon Sep 17 00:00:00 2001 From: ReaperOfVeriod Date: Thu, 20 Aug 2026 20:09:39 +0200 Subject: [PATCH] Add one-shot server installer (curl | sh) server/install.sh bootstraps deploy.sh + mods.json into a temp dir so the server can be installed with a single piped command. --- server/install.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 server/install.sh diff --git a/server/install.sh b/server/install.sh new file mode 100755 index 0000000..dbd1c86 --- /dev/null +++ b/server/install.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Reaper's Sky - one-shot server installer. +# +# Fetches deploy.sh + mods.json from the repo into a temp dir, then runs +# deploy.sh with bash. Keeps it runnable via a single pipe: +# +# curl -sSL | sh +# +# Needs: curl, bash, python3 (apt-installed by deploy.sh on Debian 13). +set -eu + +BASE="https://git.reaperofveriod.nl/ReaperOfVeriod/Reaper-s-Sky/raw/branch/main/server" +TMP="$(mktemp -d)" + +cleanup() { rm -rf "$TMP"; } +trap cleanup EXIT INT TERM + +cd "$TMP" +curl -fsSL -o deploy.sh "$BASE/deploy.sh" +curl -fsSL -o mods.json "$BASE/mods.json" +exec bash deploy.sh "$@" \ No newline at end of file