저장소 주소 변경: GitHub Gitea
모든 파일의 Git 저장소 주소를 변경: - https://github.com/yourusername/cafe24-testserver https://git.siane.kr/firstgarden/cafe24-testserver 변경된 파일: - README.md: 3곳 - proxmox/README.md: 4곳 - proxmox/setup.sh: 3곳 - proxmox/create_vm.sh: 1곳 - proxmox/create_lxc.sh: 2곳 - vm/setup_common.sh: 1곳 - lxc/setup_mariadb.sh: 1곳
This commit is contained in:
@ -55,7 +55,7 @@ Proxmox VE 호스트의 root 계정에서 한 명령어로 VM과 LXC를 모두
|
||||
```bash
|
||||
# Proxmox 호스트에서 root로 실행
|
||||
cd /root
|
||||
git clone https://github.com/yourusername/cafe24-testserver.git
|
||||
git clone https://git.siane.kr/firstgarden/cafe24-testserver.git
|
||||
cd cafe24-testserver
|
||||
chmod +x proxmox/setup.sh
|
||||
./proxmox/setup.sh
|
||||
@ -139,7 +139,7 @@ SSH로 VM1에 접속한 후:
|
||||
```bash
|
||||
# 스크립트 다운로드
|
||||
cd ~
|
||||
git clone https://github.com/yourusername/cafe24-testserver.git
|
||||
git clone https://git.siane.kr/firstgarden/cafe24-testserver.git
|
||||
cd cafe24-testserver
|
||||
|
||||
# 공통 설정 실행
|
||||
@ -169,7 +169,7 @@ LXC에서 Root로 로그인한 후:
|
||||
```bash
|
||||
# 스크립트 다운로드
|
||||
cd /root
|
||||
curl -fsSL https://github.com/yourusername/cafe24-testserver/archive/main.tar.gz | tar xz
|
||||
curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz
|
||||
cd cafe24-testserver-main
|
||||
|
||||
# MariaDB 설정 실행
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
set -e
|
||||
|
||||
# dotfiles 저장소 (실제 URL로 변경 필요)
|
||||
DOTFILES_BASE_URL="https://raw.githubusercontent.com/yourusername/cafe24-testserver/main/dotfiles"
|
||||
DOTFILES_BASE_URL="https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/dotfiles"
|
||||
|
||||
echo "=== LXC MariaDB 초기 세팅 시작 ==="
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ Proxmox 호스트에서 VM 2개(PHP 8.2, 8.4)와 LXC(MariaDB)를 한 번에 생
|
||||
**사용법:**
|
||||
```bash
|
||||
cd /root
|
||||
git clone https://github.com/yourusername/cafe24-testserver.git
|
||||
git clone https://git.siane.kr/firstgarden/cafe24-testserver.git
|
||||
cd cafe24-testserver
|
||||
chmod +x proxmox/setup.sh
|
||||
./proxmox/setup.sh
|
||||
@ -145,7 +145,7 @@ LXC ID (예: 201): 202
|
||||
```bash
|
||||
# Proxmox 호스트에서 root로 실행
|
||||
cd /root
|
||||
git clone https://github.com/yourusername/cafe24-testserver.git
|
||||
git clone https://git.siane.kr/firstgarden/cafe24-testserver.git
|
||||
cd cafe24-testserver
|
||||
chmod +x proxmox/setup.sh
|
||||
./proxmox/setup.sh
|
||||
@ -193,7 +193,7 @@ VM을 생성한 후 Proxmox 웹 UI 콘솔에서 Rocky Linux를 설치한 후:
|
||||
ssh firstgarden@<VM_IP>
|
||||
|
||||
# 스크립트 다운로드 및 실행
|
||||
curl -fsSL https://github.com/yourusername/cafe24-testserver/archive/main.tar.gz | tar xz
|
||||
curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz
|
||||
cd cafe24-testserver-main
|
||||
|
||||
# 공통 설정 실행
|
||||
@ -268,7 +268,7 @@ pct exec 201 -- ip addr show eth0
|
||||
```bash
|
||||
pct exec 201 -- bash -c "
|
||||
cd /root
|
||||
curl -fsSL 'https://github.com/yourusername/cafe24-testserver/archive/main.tar.gz' | tar xz
|
||||
curl -fsSL 'https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz' | tar xz
|
||||
cd cafe24-testserver-main
|
||||
chmod +x lxc/setup_mariadb.sh
|
||||
./lxc/setup_mariadb.sh
|
||||
|
||||
@ -47,7 +47,7 @@ DEFAULT_MEMORY=2048
|
||||
DEFAULT_CORES=2
|
||||
DEFAULT_DISK=20
|
||||
DEFAULT_TEMPLATE="local:vztmpl/rocky-9-default_9.0-1_amd64.tar.gz"
|
||||
GIT_REPO="https://github.com/yourusername/cafe24-testserver.git"
|
||||
GIT_REPO="https://git.siane.kr/firstgarden/cafe24-testserver.git"
|
||||
|
||||
print_info "=========================================="
|
||||
print_info "Proxmox VE - LXC 생성 및 MariaDB 설정"
|
||||
@ -154,7 +154,7 @@ pct exec "$LXC_ID" -- bash -c "
|
||||
if command -v git &>/dev/null; then
|
||||
git clone '$REPO_URL' cafe24-testserver
|
||||
else
|
||||
curl -fsSL '$REPO_URL/archive/main.tar.gz' | tar xz
|
||||
curl -fsSL 'https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz' | tar xz
|
||||
mv cafe24-testserver-main cafe24-testserver
|
||||
fi
|
||||
"
|
||||
|
||||
@ -129,7 +129,7 @@ if [ $? -eq 0 ]; then
|
||||
echo " ssh firstgarden@<VM_IP>"
|
||||
echo ""
|
||||
echo " 스크립트 실행:"
|
||||
echo " curl -fsSL https://github.com/yourusername/cafe24-testserver/archive/main.tar.gz | tar xz"
|
||||
echo " curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz"
|
||||
echo " cd cafe24-testserver-main"
|
||||
echo " chmod +x vm/setup_common.sh && ./vm/setup_common.sh"
|
||||
echo " chmod +x vm/install_php.sh"
|
||||
|
||||
@ -48,7 +48,7 @@ print_info "=========================================="
|
||||
echo ""
|
||||
|
||||
# 1. Git 저장소 확인
|
||||
REPO_URL="https://github.com/yourusername/cafe24-testserver.git"
|
||||
REPO_URL="https://git.siane.kr/firstgarden/cafe24-testserver.git"
|
||||
REPO_DIR="/root/cafe24-testserver"
|
||||
|
||||
read -p "Git 저장소 URL [${REPO_URL}]: " input_repo
|
||||
@ -205,7 +205,7 @@ create_vm() {
|
||||
print_info "4. 설치 완료 후 다음 명령어 실행:"
|
||||
echo ""
|
||||
echo " ssh firstgarden@<VM_IP>"
|
||||
echo " curl -fsSL https://github.com/yourusername/cafe24-testserver/archive/main.tar.gz | tar xz"
|
||||
echo " curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz"
|
||||
echo " cd cafe24-testserver-main"
|
||||
echo " chmod +x vm/setup_common.sh"
|
||||
echo " ./vm/setup_common.sh"
|
||||
@ -243,7 +243,7 @@ create_lxc() {
|
||||
pct exec "$lxc_id" -- bash -c "
|
||||
set -e
|
||||
cd /root
|
||||
curl -fsSL https://github.com/yourusername/cafe24-testserver/archive/main.tar.gz | tar xz
|
||||
curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz
|
||||
cd cafe24-testserver-main
|
||||
chmod +x lxc/setup_mariadb.sh
|
||||
./lxc/setup_mariadb.sh
|
||||
|
||||
@ -93,7 +93,7 @@ sudo systemctl restart sshd
|
||||
|
||||
# 8. Vim 및 Bash 설정 파일 다운로드 (git에서)
|
||||
# 주의: 아래 URL을 실제 git 저장소 URL로 변경하세요
|
||||
DOTFILES_BASE_URL="https://raw.githubusercontent.com/yourusername/cafe24-testserver/main/dotfiles"
|
||||
DOTFILES_BASE_URL="https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/dotfiles"
|
||||
|
||||
if command -v curl &>/dev/null; then
|
||||
echo "dotfiles 다운로드 중..."
|
||||
|
||||
Reference in New Issue
Block a user