Includes homelab deploy tooling, image position/zoom manifest persistence, and full trading/casino stack. Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
835 B
Bash
29 lines
835 B
Bash
#!/usr/bin/env bash
|
|
# Schnellstart auf dem Homelab als normaler User (gizzler)
|
|
# DuckDNS + systemd brauchen einmal: sudo bash deploy/install-homelab.sh
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "${SCRIPT_DIR}/.."
|
|
|
|
echo "==> PlayBull Quick-Start ($(whoami)@$(hostname))"
|
|
|
|
if [[ ! -f .env ]]; then
|
|
echo "Erstelle .env — bitte Werte eintragen:"
|
|
cp -n .env.example .env 2>/dev/null || true
|
|
${EDITOR:-nano} .env
|
|
fi
|
|
|
|
if [[ ! -f deploy/env.homelab ]]; then
|
|
cp deploy/env.homelab.example deploy/env.homelab
|
|
${EDITOR:-nano} deploy/env.homelab
|
|
fi
|
|
|
|
command -v node >/dev/null || { echo "Node.js fehlt. Bitte installieren (v24+)."; exit 1; }
|
|
npm install --omit=dev
|
|
|
|
echo ""
|
|
echo "Test starten: npm start"
|
|
echo "Dauerbetrieb: sudo bash deploy/install-homelab.sh (fragt sudo-Passwort)"
|
|
echo ""
|