blob: efbdc136e9aa640ebc3fd66e56918e4e1d5e757c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
# Run once on the Hetzner VPS (as root) after hetzner-infra setup
set -e
APP_DIR=/app/whois-band
REPO_DIR=/var/git/whois-band.git
mkdir -p "$APP_DIR"
mkdir -p "$REPO_DIR"
git init --bare "$REPO_DIR"
echo ""
echo "Setup complete. On your local machine, run:"
echo " git remote add hetzner root@<server-ip>:$REPO_DIR"
echo ""
echo "Then install hooks from hetzner-infra:"
echo " ssh root@<server-ip> 'bash /app/infra/scripts/install-hooks.sh'"
|