From f12dbf687d9b18aa5952f67937e757d95f854199 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sun, 17 Aug 2025 23:47:07 +0200 Subject: [PATCH] seperate install and get scripts... --- README.md | 2 +- get.sh | 14 ++++++++++++++ install.sh | 10 +--------- 3 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 get.sh diff --git a/README.md b/README.md index c618cee..c18c9f1 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Secure AlmaLinux (RHEL) Server setup with LUKS encryption, Tang, TPM and RAID1 f Boot your Hetzner server into rescue mode and run: ```bash -wget -qO- https://git.dominik-roth.eu/dodox/nullpoint/raw/branch/master/install.sh | bash +wget -qO- https://git.dominik-roth.eu/dodox/nullpoint/raw/branch/master/get.sh | bash ``` The installer will: diff --git a/get.sh b/get.sh new file mode 100644 index 0000000..1c8eab0 --- /dev/null +++ b/get.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# Simple installer for nullpoint - just downloads and runs +# Usage: wget -qO- https://git.dominik-roth.eu/dodox/nullpoint/raw/branch/master/get.sh | bash + +set -euo pipefail + +# Clean up any existing directory +[ -d "/tmp/nullpoint_installer" ] && rm -rf /tmp/nullpoint_installer + +# Clone and run +echo "[+] Downloading nullpoint installer..." +git clone https://git.dominik-roth.eu/dodox/nullpoint.git /tmp/nullpoint_installer +cd /tmp/nullpoint_installer +exec bash install.sh \ No newline at end of file diff --git a/install.sh b/install.sh index c5cae9b..ee3b307 100644 --- a/install.sh +++ b/install.sh @@ -1,17 +1,9 @@ #!/bin/bash # nullpoint installer - run this from Hetzner rescue mode -# wget -qO- https://git.dominik-roth.eu/dodox/nullpoint/raw/branch/master/install.sh | bash +# Use get.sh for wget piping: wget -qO- https://git.dominik-roth.eu/dodox/nullpoint/raw/branch/master/get.sh | bash set -euo pipefail -# If we're being piped, download the full repo and run from there -if [ ! -t 0 ]; then - echo "[+] Downloading nullpoint installer..." - git clone https://git.dominik-roth.eu/dodox/nullpoint.git /tmp/nullpoint_installer - cd /tmp/nullpoint_installer - exec bash install.sh -fi - BANNER=$(cat << "EOF" :^7J5GB##&&##GPY?~: ^75B&@@@@@@&&&@@@@@@@#GJ~: