Skip to content

Commit

Permalink
Add -DtrustServerCertificate=true in setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaab committed Jan 20, 2025
1 parent 89afc63 commit 59fc66a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dev-support/ranger-docker/Dockerfile.ranger
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ARG TARGETARCH
ARG RANGER_ADMIN_JAVA_VERSION

ENV JAVA_HOME=/usr/lib/jvm/java-1.${RANGER_ADMIN_JAVA_VERSION}.0-openjdk-${TARGETARCH}
# ENV RANGER_ADMIN_CONF=/opt/ranger/admin/conf

RUN if [ "${OS_NAME}" = "UBUNTU" ]; then\
update-java-alternatives --set "$JAVA_HOME";\
Expand Down
2 changes: 1 addition & 1 deletion security-admin/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ update_properties() {
if [ "${DB_FLAVOR}" == "MSSQL" ]
then
propertyName=ranger.jpa.jdbc.url
newPropertyValue="jdbc:sqlserver://${DB_HOST};databaseName=${db_name}"
newPropertyValue="jdbc:sqlserver://${DB_HOST};databaseName=${db_name};trustServerCertificate=true;"
updatePropertyToFilePy $propertyName $newPropertyValue $to_file_ranger

propertyName=ranger.jpa.jdbc.dialect
Expand Down

0 comments on commit 59fc66a

Please sign in to comment.