Skip to content

Commit

Permalink
Cosmetic (#452)
Browse files Browse the repository at this point in the history
* Cosmetic changes to functions
  • Loading branch information
NyakudyaA authored Oct 23, 2022
1 parent 0a435c1 commit 479dc3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ services:
- HTTP_PROXY_PORT
- STABLE_EXTENSIONS=${STABLE_EXTENSIONS}
- COMMUNITY_EXTENSIONS=${COMMUNITY_EXTENSIONS}
- STABLE_EXTENSIONS=${STABLE_EXTENSIONS}
- COMMUNITY_EXTENSIONS=${COMMUNITY_EXTENSIONS}


16 changes: 8 additions & 8 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@ export REQUEST_TIMEOUT PARALLEL_REQUEST GETMAP REQUEST_EXCEL SINGLE_USER GWC_REQ
# Setup control flow properties
setup_control_flow

# Setup tomcat apps manager
export TOMCAT_PASSWORD TOMCAT_USER



if [[ ${POSTGRES_JNDI} =~ [Tt][Rr][Uu][Ee] ]];then
postgres_ssl_setup
Expand Down Expand Up @@ -227,7 +223,11 @@ if [[ "${TOMCAT_EXTRAS}" =~ [Tt][Rr][Uu][Ee] ]]; then
generate_random_string 18
export TOMCAT_PASSWORD=${RAND}
echo -e "[Entrypoint] GENERATED tomcat PASSWORD: \e[1;31m $TOMCAT_PASSWORD \033[0m"
else
export TOMCAT_PASSWORD
fi
# Setup tomcat apps manager
export TOMCAT_USER
tomcat_user_config
else
delete_folder "${CATALINA_HOME}"/webapps/ROOT &&
Expand Down Expand Up @@ -306,7 +306,8 @@ else
sed -i -e '83,126d' "${CATALINA_HOME}"/conf/ssl-tomcat_no_https.xsl
SSL_CONF=${CATALINA_HOME}/conf/ssl-tomcat_no_https.xsl

fi
fi # End SSL settings


# change server configuration

Expand Down Expand Up @@ -423,9 +424,8 @@ else
fi


if [[ -f ${CATALINA_HOME}/conf/ssl-tomcat_no_https.xsl ]];then
rm "${CATALINA_HOME}"/conf/ssl-tomcat_no_https.xsl
fi
# Cleanup temp file
delete_file ${CATALINA_HOME}/conf/ssl-tomcat_no_https.xsl


if [[ -z "${EXISTING_DATA_DIR}" ]]; then
Expand Down

0 comments on commit 479dc3c

Please sign in to comment.