Skip to content

Commit 59fc66a

Browse files
committed
Add -DtrustServerCertificate=true in setup.sh
1 parent 89afc63 commit 59fc66a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dev-support/ranger-docker/Dockerfile.ranger

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ARG TARGETARCH
2323
ARG RANGER_ADMIN_JAVA_VERSION
2424

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

2728
RUN if [ "${OS_NAME}" = "UBUNTU" ]; then\
2829
update-java-alternatives --set "$JAVA_HOME";\

security-admin/scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ update_properties() {
746746
if [ "${DB_FLAVOR}" == "MSSQL" ]
747747
then
748748
propertyName=ranger.jpa.jdbc.url
749-
newPropertyValue="jdbc:sqlserver://${DB_HOST};databaseName=${db_name}"
749+
newPropertyValue="jdbc:sqlserver://${DB_HOST};databaseName=${db_name};trustServerCertificate=true;"
750750
updatePropertyToFilePy $propertyName $newPropertyValue $to_file_ranger
751751

752752
propertyName=ranger.jpa.jdbc.dialect

0 commit comments

Comments
 (0)