fixed issue with bootRun on RHEL

This commit is contained in:
iadgovuser26 2023-07-13 16:40:15 -04:00
parent e9c33f2857
commit 29ba16cdb5
6 changed files with 24 additions and 7 deletions

View File

@ -17,7 +17,7 @@ spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
#spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
# Tomcat Config
server.tomcat.additional-tld-skip-patterns=*.jar
server.tomcat.additional-tld-skip-patterns=*jakarta*.jar, txw2*.jar, *commons*.jar, *annotations*.jar, *checker*.jar, *lombok*.jar, *jsr*.jar, *guava*.jar, *access*.jar, *activation*.jar, *bcprov*.jar, *bcmail*.jar, *bcutil*.jar, *bcpkix*.jar, *json*.jar
server.tomcat.basedir=/opt/embeddedtomcat
server.servlet.register-default-servlet=true
server.servlet.context-path=/HIRS_AttestationCAPortal

View File

@ -38,8 +38,6 @@ dependencies {
implementation libs.minimal.json
implementation libs.jakarta.api
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
implementation 'org.apache.logging.log4j:log4j-api:2.19.0'
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.1'

View File

@ -12,7 +12,7 @@ declare -A props
if [ -f $PASS_FILE ]; then
while IFS="=" read -r key value; do
echo "key is $key, value is $value"
#echo "key is $key, value is $value"
if [ ! -z "$key" ]; then
props["$key"]="$value"
fi

View File

@ -1,11 +1,22 @@
#!/bin/bash
# Capture location of the script to allow from invocation from any location
SCRIPT_DIR=$( dirname -- "$( readlink -f -- "$0"; )"; )
PROP_FILE='../../../HIRS_AttestationCAPortal/src/main/resources/application.properties'
mkdir -p /etc/hirs/aca
if [ "$EUID" -ne 0 ]
then echo "The first time this script is run, this script requires root. Please run as root"
exit 1
fi
mkdir -p /etc/hirs/aca/
pushd $SCRIPT_DIR
# If setup for development start with basic spring config
if [ -f $PROP_FILE ]; then
cp $PROP_FILE /etc/hirs/aca/.
fi
sh ../db/db_create.sh
if [ $? -eq 0 ]; then
echo "ACA database setup complete"
@ -20,6 +31,7 @@ if [ $? -eq 0 ]; then
echo "Error setting up ACA PKI"
exit 1
fi
echo "ACA setup complete"
popd

View File

@ -11,6 +11,13 @@ PROP_FILE=/etc/hirs/aca/application.properties
# Capture location of the script to allow from invocation from any location
SCRIPT_DIR=$( dirname -- "$( readlink -f -- "$0"; )"; )
echo "SCRIPT_DIR is $SCRIPT_DIR"
# Check for sudo or root user
if [ "$EUID" -ne 0 ]
then echo "The first time this script is run, this script requires root. Please run as root"
exit 1
fi
# Set HIRS PKI password
if [ -z $HIRS_PKI_PWD ]; then
# Create a 32 character random password