Skip to content

Commit b8b918d

Browse files
committed
Integrate the recently added migstats weekly cronjob to populate the stats at
Server Admin page.
1 parent bb110bc commit b8b918d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile.rocky8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,8 +1598,9 @@ RUN ln -s index-${DOMAIN}.html $MIG_ROOT/state/wwwpublic/index.html && \
15981598
RUN sed -i -e "s@https://ext\.${EMULATE_FQDN}@https://${MIGOID_DOMAIN}@g;s@https://oid\.${EMULATE_FQDN}@https://${EXTOID_DOMAIN}@g;s@https://oidc\.${EMULATE_FQDN}@https://${EXTOIDC_DOMAIN}@g;s@https://${EMULATE_FQDN}@https://${PUBLIC_DOMAIN}@g;s@https://cert\.${EMULATE_FQDN}@https://${EXTCERT_DOMAIN}@g;s@https://sid\.${EMULATE_FQDN}@https://${SID_DOMAIN}@g" $MIG_ROOT/state/wwwpublic/index-${DOMAIN}.html
15991599

16001600
# Various cron jobs e.g. to clean stale state and inform migoid account users near expiry
1601-
RUN chmod 755 generated-confs/{migstateclean,mignotifyexpire,migerrors,migacctexpire} \
1601+
RUN chmod 755 generated-confs/{migstateclean,mignotifyexpire,migerrors,migstats,migacctexpire} \
16021602
&& cp generated-confs/{migstateclean,mignotifyexpire,migerrors} /etc/cron.daily/ \
1603+
&& cp generated-confs/migstats /etc/cron.weekly/ \
16031604
&& cp generated-confs/migacctexpire /etc/cron.monthly/
16041605
RUN if [ "${ENABLE_FREEZE}" = "True" ]; then \
16051606
chmod 755 generated-confs/{migimportdoi,migindexdoi,migverifyarchives} \

Dockerfile.rocky9

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,8 +1485,9 @@ RUN ln -s index-${DOMAIN}.html $MIG_ROOT/state/wwwpublic/index.html && \
14851485
RUN sed -i -e "s@https://ext\.${EMULATE_FQDN}@https://${MIGOID_DOMAIN}@g;s@https://oid\.${EMULATE_FQDN}@https://${EXTOID_DOMAIN}@g;s@https://oidc\.${EMULATE_FQDN}@https://${EXTOIDC_DOMAIN}@g;s@https://${EMULATE_FQDN}@https://${PUBLIC_DOMAIN}@g;s@https://cert\.${EMULATE_FQDN}@https://${EXTCERT_DOMAIN}@g;s@https://sid\.${EMULATE_FQDN}@https://${SID_DOMAIN}@g" $MIG_ROOT/state/wwwpublic/index-${DOMAIN}.html
14861486

14871487
# Various cron jobs e.g. to clean stale state and inform migoid account users near expiry
1488-
RUN chmod 755 generated-confs/{migstateclean,mignotifyexpire,migerrors,migacctexpire} \
1488+
RUN chmod 755 generated-confs/{migstateclean,mignotifyexpire,migerrors,migstats,migacctexpire} \
14891489
&& cp generated-confs/{migstateclean,mignotifyexpire,migerrors} /etc/cron.daily/ \
1490+
&& cp generated-confs/migstats /etc/cron.weekly/ \
14901491
&& cp generated-confs/migacctexpire /etc/cron.monthly/
14911492
RUN if [ "${ENABLE_FREEZE}" = "True" ]; then \
14921493
chmod 755 generated-confs/{migimportdoi,migindexdoi,migverifyarchives} \

0 commit comments

Comments
 (0)