From 9ecb9d67838aa55d24096d7cb1c1e85e47e3d740 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 19 Apr 2026 02:17:18 +0000 Subject: [PATCH] =?UTF-8?q?Add=20bootstrap.sh=20=E2=80=94=20one-file=20dow?= =?UTF-8?q?nload=20that=20pulls=20repo=20from=20GitHub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit curl -fsSL https://raw.githubusercontent.com/outis1one/sky-cam/main/bootstrap.sh | bash https://claude.ai/code/session_01C4jbd3waXG3eKZYbGUjLUQ --- bootstrap.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..1f63b7a --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# bootstrap.sh — download and unpack sky-cam from GitHub. +# +# Usage: +# bash bootstrap.sh [TARGET_DIR] +# +# Downloads the latest sky-cam from GitHub into TARGET_DIR (default: ./sky-cam), +# then tells you what to do next. + +set -euo pipefail + +TARGET="${1:-sky-cam}" +REPO="outis1one/sky-cam" +BRANCH="main" +URL="https://github.com/$REPO/archive/refs/heads/$BRANCH.tar.gz" + +echo "Downloading sky-cam from GitHub..." +curl -fL "$URL" | tar xz +mv "sky-cam-$BRANCH" "$TARGET" + +echo "" +echo "Done. Next steps:" +echo " 1. Edit $TARGET/sky-cam.conf" +echo " — SCRIPT_DIR full path to the directory you'll run scripts from" +echo " — BASE_DIR where your camera images live" +echo " — MUSIC_DIR path to your Vivaldi Four Seasons audio files" +echo " — CAM_NAME camera subfolder name (e.g. sunrise)" +echo " — LATITUDE / LONGITUDE / TIMEZONE your location" +echo " — Mattermost credentials (mattermost_url, access_token, channel_id)" +echo "" +echo " 2. cd $TARGET && ./install.sh"