This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Brandon League VPS — one-shot fix after run-bp.sh became tracked in repo. | |
| # Removes the local untracked wrapper, pulls the new tracked version, runs | |
| # fetch.py to generate today's snapshot, then runs the new wrapper. | |
| set -e | |
| echo "==> Updating VPS app dir..." | |
| sudo -u bpfetch bash <<'EOF' | |
| set -e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Brandon League VPS — Phase 3 | |
| # Installs .env (scp'd to /tmp/env), creates BP-fetch wrapper script, | |
| # sets up cron, runs a test fetch + GitHub push to verify the loop. | |
| set -e | |
| APP_DIR="/home/bpfetch/brandon-league" | |
| ENV_SRC="/tmp/env" | |
| ENV_DST="$APP_DIR/.env" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Brandon League VPS — Phase 2 | |
| # Clones repo via deploy key, sets up Python venv, installs deps, creates | |
| # .env template. After this completes, user scp's their local .env over, | |
| # then runs Phase 3. | |
| set -e | |
| REPO_URL="git@github.com:psquire/brandon-league.git" | |
| APP_DIR="/home/bpfetch/brandon-league" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Brandon League VPS — Phase 1 setup | |
| # Installs system deps, creates a non-root user, generates SSH deploy key, | |
| # uploads the public key to a paste service so it's copyable without | |
| # fighting Hetzner's web console clipboard. | |
| set -e | |
| echo "==> Updating apt + installing system packages..." | |
| apt-get update -qq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Brandon League VPS — Phase 1 setup | |
| # Installs system deps, creates a non-root user, generates SSH deploy key. | |
| # Run once on a fresh Hetzner Ubuntu 24.04 VPS as root. | |
| set -e | |
| echo "==> Updating apt + installing system packages..." | |
| apt-get update -qq | |
| apt-get install -y -qq \ |