배포 실행 파일 수정 DB 덤프 자동실행 추가
This commit is contained in:
@@ -2,7 +2,20 @@
|
||||
set -euo pipefail
|
||||
|
||||
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
remote_url="https://gitea.hmac.kr/b24014/egbim_homepage.git"
|
||||
remote_mode="${1:-https}"
|
||||
|
||||
case "$remote_mode" in
|
||||
https)
|
||||
remote_url="https://gitea.hmac.kr/b24014/egbim_homepage.git"
|
||||
;;
|
||||
ssh)
|
||||
remote_url="ssh://git@172.16.10.175:22/b24014/egbim_homepage.git"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 [https|ssh]" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
cd "$repo_root"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user