Commit 16e8ca08 authored by platyhouse's avatar platyhouse

refs pty

parent 99fdd8c6
grep -Fxq 'export PATH=$PATH:/root/pty_centos.git' /etc/bashrc || echo 'export PATH=$PATH:/root/pty_centos.git' >> /etc/bashrc
......@@ -49,6 +49,7 @@ show_menu() {
echo -e " ${CYAN}4.${NC} YUM 캐시 정리"
echo -e " ${CYAN}5.${NC} 시스템 패키지 업데이트"
echo -e " ${CYAN}6.${NC} Python 설치"
echo -e " ${CYAN}g.${NC} Git 작업"
echo -e " ${CYAN}7.${NC} Node.js 및 Claude & Gemini CLI 설치"
echo -e " ${CYAN}8.${NC} 필수 패키지 설치"
echo -e " ${CYAN}9.${NC} 시간대를 서울로 설정"
......@@ -56,7 +57,7 @@ show_menu() {
echo -e " ${CYAN}11.${NC} SELinux ON/OFF"
echo -e " ${CYAN}q.${NC} 종료"
echo ""
echo -e "${YELLOW}선택 (예: 0,1,3 또는 0):${NC} \c"
echo -e "${YELLOW}선택 (예: 0,1,3,g 또는 0):${NC} \c"
}
#######################################
......@@ -290,6 +291,24 @@ setup_python() {
echo ""
}
#######################################
# g. Git 작업
#######################################
setup_git() {
echo -e "${CYAN}[g]${NC} Git 작업"
echo ""
# pty_git 실행
if [ -f "/var/lib/pty_centos.git/pty_git" ]; then
bash /var/lib/pty_centos.git/pty_git
elif [ -f "./pty_git" ]; then
bash ./pty_git
else
echo -e " ${RED}${NC} pty_git 파일을 찾을 수 없습니다."
echo -e " ${YELLOW}경로:${NC} /var/lib/pty_centos.git/pty_git 또는 ./pty_git"
fi
echo ""
}
#######################################
# 7. Node.js 및 Claude 설치
#######################################
......@@ -483,6 +502,7 @@ while true; do
setup_yum_clean
setup_system_update
setup_python
setup_git
setup_nodejs_claude
setup_packages
setup_timezone
......@@ -515,6 +535,9 @@ while true; do
6)
setup_python
;;
g|G)
setup_git
;;
7)
setup_nodejs_claude
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment