settings_erp.sh 1020 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. theme_file="kbgolf"
  3. main_dir="/var/www/html"
  4. del_vendor_dir="/var/www/html/vendor"
  5. s_vendor_dir="/home/vendor"
  6. # vendor 디렉토리 삭제
  7. rm -rf "$del_vendor_dir"
  8. # home 경로에 vendor 디렉토리 생성
  9. mkdir -p "$s_vendor_dir"
  10. # /var/www/html 경로 이동
  11. cd "$main_dir"
  12. # vendor 심볼릭 링크 생성
  13. ln -s "$s_vendor_dir" vendor
  14. # resources 심볼릭 링크 생성
  15. # resources_link="$main_dir/public/themes/$theme_file/pro/resources"
  16. # if [ -d "$main_dir/public/themes/$theme_file/pro" ]; then
  17. # cd "$main_dir/public/themes/$theme_file/pro"
  18. # else
  19. # mkdir -p "$main_dir/public/themes/$theme_file/pro"
  20. # cd "$main_dir/public/themes/$theme_file/pro"
  21. # fi
  22. # # 기존의 resources 심볼릭 링크나 디렉토리가 있으면 삭제
  23. # if [ -e "$resources_link" ]; then
  24. # rm -rf "$resources_link"
  25. # fi
  26. # # 새로운 resources 심볼릭 링크 생성
  27. # ln -s "$main_dir/dabory/themes/$theme_file/pro/resources" resources
  28. cd "$main_dir"
  29. # composer update 실행
  30. composer update