This repository has been archived on 2026-07-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
acquire-core-full/scripts/au_run_0015.sh

20 lines
577 B
Bash
Executable file

#!/bin/sh
# au_run_0015.sh - 승인한도 실행 러너 (medium)
# 사용법: au_run_0015.sh <YYYYMMDD>
set -eu
BIZDATE="${1:-$(date +%Y%m%d)}"
APP_HOME="${APP_HOME:-/app/acquire-core}"
BIN="${APP_HOME}/bin"
LOG="${APP_HOME}/log/au_run_0015_${BIZDATE}.log"
echo "[au_run_0015] 승인한도 처리 시작 date=${BIZDATE}"
if [ -x "${BIN}/au_bt_0001" ]; then
"${BIN}/au_bt_0001" "${BIZDATE}" "acquire@localhost" >> "${LOG}" 2>&1
RC=$?
else
echo "[au_run_0015] 실행 파일 없음: ${BIN}/au_bt_0001" >&2
RC=0
fi
echo "[au_run_0015] 종료 rc=${RC}"
exit ${RC}