Add support for root account execution without sudo
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user