Skip to content

Commit

Permalink
JAVA_HOME 로딩 위치 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yujung7768903 committed Oct 13, 2024
1 parent 709ec5e commit b0c365d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ hooks:
- location: scripts/stop_was.sh
timeout: 60
runas: ec2-user
# JAVA_HOME과 PATH 설정을 명시적으로 로드
AfterInstall:
- location: /etc/profile.d/jdk.sh
timeout: 60
runas: root
ApplicationStart:
- location: scripts/run_new_was.sh
timeout: 60
Expand Down
5 changes: 5 additions & 0 deletions scripts/run_new_was.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

#!/bin/bash

# JAVA_HOME과 PATH 설정을 명시적으로 로드
if [ -f /etc/profile.d/jdk.sh ]; then
source /etc/profile.d/jdk.sh
fi

echo "start run_new_was"
echo "current user: $USER"
echo "JAVA_HOME: $JAVA_HOME"
Expand Down

0 comments on commit b0c365d

Please sign in to comment.