Skip to content

Commit

Permalink
Configuration API env
Browse files Browse the repository at this point in the history
  • Loading branch information
cdebarros committed Sep 3, 2024
1 parent 0cdde02 commit e665299
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/docker/docker-entrypoint-ign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ CONFIG_FILE_NAME=default.toml
if [ ! -z "${GN4_API_URL}" ]
then
echo "[INFO] Replacing GN4 url in conf with: ${GN4_API_URL}..."
sed -i "s%geonetwork4_api_url = \".*\"%geonetwork4_api_url = \"${GN4_API_URL}\"%" ${APP_FILES_PATH}${CONFIG_FILE_PATH}${CONFIG_FILE_NAME}
sed "s%geonetwork4_api_url = \".*\"%geonetwork4_api_url = \"${GN4_API_URL}\"%" ${APP_FILES_PATH}${CONFIG_FILE_PATH}${CONFIG_FILE_NAME} > /tmp/${CONFIG_FILE_NAME} && cat /tmp/${CONFIG_FILE_NAME} > ${APP_FILES_PATH}${CONFIG_FILE_PATH}${CONFIG_FILE_NAME}
rm /tmp/${CONFIG_FILE_NAME}
fi

echo "[INFO] docker-entrypoint-ign.sh ended successfully."
Expand Down

0 comments on commit e665299

Please sign in to comment.