Skip to content

Commit

Permalink
fix permissions for nodes in clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
NyakudyaA committed Dec 30, 2023
1 parent 0f640c5 commit e9bec01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ function cluster_config() {
envsubst < /build_data/cluster.properties > "${CLUSTER_CONFIG_DIR}"/cluster.properties
fi
fi
chown -R "${USER_NAME}":"${GEO_GROUP_NAME}" "${GEOSERVER_DATA_DIR}"/cluster
}

# Helper function to setup broker config. Used with clustering configs
Expand Down
9 changes: 2 additions & 7 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,8 @@ if [[ ${CLUSTERING} =~ [Tt][Rr][Uu][Ee] ]]; then
fi
fi
# Download Clustering module, temporary fixes https://github.com/kartoza/docker-geoserver/issues/514
${request} https://download.jar-download.com/cache_jars/org.jdom/jdom2/2.0.6.1/jar_files.zip
if [[ -f jar_files.zip ]];then
unzip jar_files.zip -d "${CATALINA_HOME}"/webapps/"${GEOSERVER_CONTEXT_ROOT}"/WEB-INF/lib/
rm jar_files.zip
else
cp -r /build_data/jdom2-2.0.6.1.jar "${CATALINA_HOME}"/webapps/"${GEOSERVER_CONTEXT_ROOT}"/WEB-INF/lib/
fi
cp -r /build_data/jdom2-2.0.6.1.jar "${CATALINA_HOME}"/webapps/"${GEOSERVER_CONTEXT_ROOT}"/WEB-INF/lib/

fi

export REQUEST_TIMEOUT PARALLEL_REQUEST GETMAP REQUEST_EXCEL SINGLE_USER GWC_REQUEST WPS_REQUEST
Expand Down

0 comments on commit e9bec01

Please sign in to comment.