1234567891011121314151617181920212223242526272829303132333435363738 |
- #!/bin/bash
- theme_file="kbgolf"
- main_dir="/var/www/html"
- del_vendor_dir="/var/www/html/vendor"
- s_vendor_dir="/home/vendor"
- # vendor 디렉토리 삭제
- rm -rf "$del_vendor_dir"
- # home 경로에 vendor 디렉토리 생성
- mkdir -p "$s_vendor_dir"
- # /var/www/html 경로 이동
- cd "$main_dir"
- # vendor 심볼릭 링크 생성
- ln -s "$s_vendor_dir" vendor
- # resources 심볼릭 링크 생성
- # resources_link="$main_dir/public/themes/$theme_file/pro/resources"
- # if [ -d "$main_dir/public/themes/$theme_file/pro" ]; then
- # cd "$main_dir/public/themes/$theme_file/pro"
- # else
- # mkdir -p "$main_dir/public/themes/$theme_file/pro"
- # cd "$main_dir/public/themes/$theme_file/pro"
- # fi
- # # 기존의 resources 심볼릭 링크나 디렉토리가 있으면 삭제
- # if [ -e "$resources_link" ]; then
- # rm -rf "$resources_link"
- # fi
- # # 새로운 resources 심볼릭 링크 생성
- # ln -s "$main_dir/dabory/themes/$theme_file/pro/resources" resources
- cd "$main_dir"
- # composer update 실행
- composer update
|