From f69ee954433de7a4852917c68b9130ec1951dc8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=8B=9C=EA=B3=A8=EC=95=BD=EC=82=AC?= Date: Thu, 11 Sep 2025 00:44:44 +0900 Subject: [PATCH] Add support for root account execution without sudo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update script comments and documentation for root vs regular users - Improve error message for missing root privileges - Add separate command examples for root accounts (Proxmox, containers, etc.) - Update README and installation guide with both sudo and non-sudo examples ๐Ÿš€ Generated with Claude Code Co-Authored-By: Claude --- QUICK_INSTALL_GUIDE.md | 13 ++++++++++++- README.md | 11 +++++++---- quick-install.sh | 7 +++++-- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/QUICK_INSTALL_GUIDE.md b/QUICK_INSTALL_GUIDE.md index 0cde8e6..ed7f0ae 100644 --- a/QUICK_INSTALL_GUIDE.md +++ b/QUICK_INSTALL_GUIDE.md @@ -6,12 +6,20 @@ ### ๋ฐฉ๋ฒ• 1: curl ์‚ฌ์šฉ (๊ถŒ์žฅ) ```bash +# ์ผ๋ฐ˜ ์‚ฌ์šฉ์ž ๊ณ„์ •์—์„œ curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | sudo bash + +# root ๊ณ„์ •์—์„œ (Proxmox, Docker ์ปจํ…Œ์ด๋„ˆ ๋“ฑ) +curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | bash ``` ### ๋ฐฉ๋ฒ• 2: wget ์‚ฌ์šฉ ```bash +# ์ผ๋ฐ˜ ์‚ฌ์šฉ์ž ๊ณ„์ •์—์„œ wget -qO- https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | sudo bash + +# root ๊ณ„์ •์—์„œ +wget -qO- https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | bash ``` ### ๋ฐฉ๋ฒ• 3: ์Šคํฌ๋ฆฝํŠธ ๋‹ค์šด๋กœ๋“œ ํ›„ ์‹คํ–‰ @@ -23,8 +31,11 @@ sudo ./quick-install.sh ### ๋ฐฉ๋ฒ• 4: ๊ธฐ์กด Tailscale ์—ฐ๊ฒฐ์ด ์žˆ๋Š” ๊ฒฝ์šฐ (๊ฐ•์ œ ์žฌ๋“ฑ๋ก) ```bash -# ๊ธฐ์กด Tailscale/Headscale ์—ฐ๊ฒฐ์„ ๊ฐ•์ œ๋กœ ํ•ด์ œํ•˜๊ณ  ์žฌ๋“ฑ๋ก +# ์ผ๋ฐ˜ ์‚ฌ์šฉ์ž ๊ณ„์ •์—์„œ curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | sudo bash -s -- --force + +# root ๊ณ„์ •์—์„œ (Proxmox ๋“ฑ) +curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | bash -s -- --force ``` ### ๋ฐฉ๋ฒ• 5: ์Šคํฌ๋ฆฝํŠธ ์˜ต์…˜ ํ™•์ธ diff --git a/README.md b/README.md index a398c60..b9cfb98 100644 --- a/README.md +++ b/README.md @@ -137,17 +137,20 @@ git push origin main ### ๋น ๋ฅธ ์„ค์น˜ (๊ถŒ์žฅ) ```bash +# ์ผ๋ฐ˜ ์‚ฌ์šฉ์ž ๊ณ„์ • curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | sudo bash -``` -### ๋˜๋Š” wget ์‚ฌ์šฉ -```bash -wget -qO- https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | sudo bash +# root ๊ณ„์ • (Proxmox ๋“ฑ) +curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | bash ``` ### ๊ธฐ์กด Tailscale ์—ฐ๊ฒฐ์ด ์žˆ๋Š” ๊ฒฝ์šฐ (๊ฐ•์ œ ์žฌ๋“ฑ๋ก) ```bash +# ์ผ๋ฐ˜ ์‚ฌ์šฉ์ž curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | sudo bash -s -- --force + +# root ๊ณ„์ • +curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/feature/working-headscale-setup/quick-install.sh | bash -s -- --force ``` ### ์ง€์› OS diff --git a/quick-install.sh b/quick-install.sh index e49af88..6ec0a6e 100755 --- a/quick-install.sh +++ b/quick-install.sh @@ -3,7 +3,8 @@ # ํŒœํ(FARMQ) Headscale ์›ํด๋ฆญ ์„ค์น˜ ๋ฐ ๋“ฑ๋ก ์Šคํฌ๋ฆฝํŠธ # ์‚ฌ์šฉ๋ฒ•: curl -fsSL https://git.0bin.in/.../quick-install.sh | sudo bash # ๋˜๋Š”: wget -qO- https://git.0bin.in/.../quick-install.sh | sudo bash -# ๊ฐ•์ œ ์žฌ๋“ฑ๋ก: curl -fsSL https://git.0bin.in/.../quick-install.sh | sudo bash -s -- --force +# root ๊ณ„์ •: curl -fsSL https://git.0bin.in/.../quick-install.sh | bash +# ๊ฐ•์ œ ์žฌ๋“ฑ๋ก: curl -fsSL https://git.0bin.in/.../quick-install.sh | bash -s -- --force set -e @@ -99,7 +100,9 @@ check_requirements() { # Root ๊ถŒํ•œ ํ™•์ธ if [ "$EUID" -ne 0 ]; then print_error "์ด ์Šคํฌ๋ฆฝํŠธ๋Š” root ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค." - print_info "sudo $0 ๋กœ ๋‹ค์‹œ ์‹คํ–‰ํ•ด์ฃผ์„ธ์š”." + print_info "๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์˜ ๋ฐฉ๋ฒ•์œผ๋กœ ๋‹ค์‹œ ์‹คํ–‰ํ•ด์ฃผ์„ธ์š”:" + print_info "1. sudo๊ฐ€ ์žˆ๋Š” ๊ฒฝ์šฐ: curl ... | sudo bash" + print_info "2. root ๊ณ„์ •์ธ ๊ฒฝ์šฐ: curl ... | bash" exit 1 fi