배포 실행 파일 수정 DB 덤프 자동실행 추가1

This commit is contained in:
root
2026-07-23 17:14:16 +09:00
parent b5801d149a
commit e44eea9f5d
3 changed files with 14 additions and 2 deletions
+10 -1
View File
@@ -2,11 +2,20 @@
set -euo pipefail
branch="${1:-main}"
target_dir="${2:-/srv/egbim_homepage}"
target_dir="${2:-~/egbim}"
env_file="${3:-}"
db_dump_path="${4:-egbim_DB.sql}"
db_import_marker=".db_import_done"
case "$target_dir" in
'~')
target_dir="$HOME"
;;
'~/'*)
target_dir="$HOME/${target_dir#\~/}"
;;
esac
mkdir -p "$target_dir"
cd "$target_dir"