Skip to content

Commit

Permalink
Merge pull request #1059 from newrelic/pchinthapenta-NR-233117
Browse files Browse the repository at this point in the history
Pchinthapenta nr 233117
  • Loading branch information
Avinash-Sanpala authored Mar 21, 2024
2 parents 0aa92d5 + 8f5ce10 commit c96b8f8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/deploy/linux/java/javaApp/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<body>
<h2>Hello World!</h2>
</body>
<body>
<h2>Hello World!</h2>
</body>
</html>
5 changes: 5 additions & 0 deletions test/deploy/linux/java/redhat/roles/configure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
PATH: "{{ ansible_env.PATH }}:/opt/jdk-14.0.1/bin:/opt/apache-maven/bin"
JRE_HOME: "/opt/jdk-14.0.1"
become: true

- name: Change the permissions and ownership of javaApp directory
shell: chown -R ec2-user:ec2-user /home/ec2-user/javaApp/ &&
chmod -R 755 /home/ec2-user/javaApp
become: true

- name: Move the package
shell: mv /home/ec2-user/javaApp/target/javaApp.war /opt/tomcat/latest/webapps
Expand Down

0 comments on commit c96b8f8

Please sign in to comment.