diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-05-17 11:18:24 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-05-17 21:52:07 +0900 |
| commit | a100fb28f92fa7c5d2cf701d118c4c7b898c9bf2 (patch) | |
| tree | 361c8328537e3e794c09fbdff7a9503c21824cbc /scripts | |
| parent | 770dfde54e38fe201d5c4bde031c81653e568cda (diff) | |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/server-setup.sh | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/scripts/server-setup.sh b/scripts/server-setup.sh index efbdc13..8a0d076 100644 --- a/scripts/server-setup.sh +++ b/scripts/server-setup.sh @@ -1,17 +1,12 @@ #!/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'" +# リポジトリ作成・フックのインストールは hetzner-infra の install.sh が担う。 +# このスクリプトは参照用として残している。 +# +# セットアップ手順: +# 1. hetzner-infra の server-setup.sh を実行 +# 2. git push hetzner master (hetzner-infra) +# 3. ssh root@<server-ip> 'bash /app/infra/scripts/install.sh' +# → /var/git/whois-band.git と /app/whois-band が作成される +# 4. git remote add hetzner root@<server-ip>:/var/git/whois-band.git +# 5. git push hetzner master +echo "See hetzner-infra/scripts/install.sh for server setup." |
