Skip to content

Commit bcc5cb2

Browse files
authored
feat(docker-admin-ui): add configuration to set interval to sync license details (#2018)
Signed-off-by: iromli <[email protected]>
1 parent 5510b97 commit bcc5cb2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docker-admin-ui/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ RUN cd /tmp/jans \
4444
&& cp ${JANS_SETUP_DIR}/schema/custom_schema.json /app/schema/ \
4545
&& cp ${JANS_SETUP_DIR}/schema/opendj_types.json /app/schema/
4646

47-
ENV FLEX_SOURCE_VERSION=d760d9dbad11144b7f69674877b57d5f176f1c28
47+
ENV FLEX_SOURCE_VERSION=5510b97041b0a01ec96f732412deeea9e9927077
4848

4949
RUN mkdir -p /app/templates/admin-ui
5050

docker-admin-ui/scripts/bootstrap.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121
def main():
2222
manager = get_manager()
2323

24-
mapper = PersistenceMapper()
25-
persistence_groups = mapper.groups().keys()
26-
2724
wait_for_persistence(manager)
28-
2925
render_env_config(manager)
3026

3127
with manager.create_lock("admin-ui-setup"):
@@ -257,6 +253,11 @@ def resolve_conf_app(old_conf, new_conf):
257253
old_conf["uiConfig"]["allowSmtpKeystoreEdit"] = True
258254
should_update = True
259255

256+
# add missing intervalForSyncLicenseDetailsInDays under licenseConfig
257+
if "intervalForSyncLicenseDetailsInDays" not in old_conf["licenseConfig"]:
258+
old_conf["licenseConfig"]["intervalForSyncLicenseDetailsInDays"] = 30
259+
should_update = True
260+
260261
# finalized status and conf
261262
return should_update, old_conf
262263

0 commit comments

Comments
 (0)