dotfiles 다운로드 경로 수정: Gitea raw 파일 URL 수정
- DOTFILES_BASE_URL 경로 변경: https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/dotfiles https://git.siane.kr/firstgarden/cafe24-testserver/raw/main - 각 파일 다운로드 경로 업데이트: \/vimrc \/dotfiles/vimrc - curl 다운로드 에러 처리 강화 (vm/setup_common.sh) 변경 파일: - lxc/setup_mariadb.sh - vm/setup_common.sh
This commit is contained in:
@ -92,15 +92,15 @@ sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh
|
||||
sudo systemctl restart sshd
|
||||
|
||||
# 8. Vim 및 Bash 설정 파일 다운로드 (git에서)
|
||||
# 주의: 아래 URL을 실제 git 저장소 URL로 변경하세요
|
||||
DOTFILES_BASE_URL="https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/dotfiles"
|
||||
# Gitea raw 파일 경로: https://git.siane.kr/firstgarden/cafe24-testserver/raw/branch/path
|
||||
DOTFILES_BASE_URL="https://git.siane.kr/firstgarden/cafe24-testserver/raw/main"
|
||||
|
||||
if command -v curl &>/dev/null; then
|
||||
echo "dotfiles 다운로드 중..."
|
||||
curl -fsSL -o "$WEB_HOME/.vimrc" "$DOTFILES_BASE_URL/vimrc" 2>/dev/null || echo "경고: .vimrc 다운로드 실패"
|
||||
curl -fsSL -o "$WEB_HOME/.vimrc" "$DOTFILES_BASE_URL/dotfiles/vimrc" 2>/dev/null || echo "경고: .vimrc 다운로드 실패"
|
||||
|
||||
# .bashrc_addon 다운로드
|
||||
if curl -fsSL -o "$WEB_HOME/.bashrc_addon" "$DOTFILES_BASE_URL/bashrc_addon" 2>/dev/null; then
|
||||
if curl -fsSL -o "$WEB_HOME/.bashrc_addon" "$DOTFILES_BASE_URL/dotfiles/bashrc_addon" 2>/dev/null; then
|
||||
# 기존 .bashrc 백업
|
||||
if [ -f "$WEB_HOME/.bashrc" ]; then
|
||||
cp "$WEB_HOME/.bashrc" "$WEB_HOME/.bashrc.bak"
|
||||
|
||||
Reference in New Issue
Block a user